diff --git a/examples/portable_window/portable_window.c b/examples/portable_window/portable_window.c index 8194e64..a7d3c9a 100644 --- a/examples/portable_window/portable_window.c +++ b/examples/portable_window/portable_window.c @@ -57,6 +57,7 @@ int main() { if (CheckCollisionPointRec(mousePosition, (Rectangle){ 0, 0, screenWidth, 20 })) { + windowPosition = GetWindowPosition(); dragWindow = true; panOffset = mousePosition; }