-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dragging prevents pointer move events. #134
Comments
Thanks for the Any progress on this issue? |
Difference between Swing drag and move events: - move events are fired only in the bounds of the window and when mouse isn't pressed - drag events are fired when mouse is pressed and can be fired even if the mouse outside of the pressed window Currently we treat drag events only as Modifier.pointerInput events. And move events only as Modifier.onPointerMove events This CL allows: - handle any mouse move/drag events with Modifier.pointerInput - use mouse hover (Modifier.onPointerMove) with the pressed mouse button But after this some components should handle Modifier.onPointerMove(onExit={}) differently. For example, we need to keep scrollbar highlighted when we move mouse outside of the scrollbar. Before this CL this was handled automatically, because we didn't send move events when we drag the mouse. But it shouldn't be handled automatically, developer should explicitly write this logic (keep scrollbar highlighted when we drag it) Fixes: JetBrains/compose-multiplatform#134 JetBrains/compose-multiplatform#530 Change-Id: If510840c2c7e4bf2e192f9990e5a05cec592635a Test: manual ./gradlew :compose:desktop:desktop:desktop-samples:run1 -Pandroidx.compose.multiplatformEnabled=true Test: drag Scrollbar and move mouse outside
Should be fixed in 0.4.0-build190. Now both Swing's |
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks. |
Affects:
0.2.0-build127
While dragging it's not possible to receive any other mouse move events, I traced the issue back to the
MouseMotionListener
that is being registered.mouseMoved
will not be called while dragging is active,mouseDragged
is called in that case.I currently have the following temporary workaround:
The text was updated successfully, but these errors were encountered: