Hot Door CORE Forum
CustomWidget drag event "stuck" under Windows - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bugs (http://hotdoorcore.com/forum/forumdisplay.php?fid=5)
+--- Thread: CustomWidget drag event "stuck" under Windows (/showthread.php?tid=306)



CustomWidget drag event "stuck" under Windows - Rick Johnson - 02-20-2022

In a CustomWidget, a Mac user can drag in the control and the drag event keeps recording even after the user drags beyond the bounds of the control and the event correctly ends when the mouse button is released.

In Windows, the drag seems to end when the cursor goes beyond the control's bounds, but when the cursor hovers over the control again, the CustomWidget thinks the user is still dragging, even with the mouse up. The drag event can only be ended by clicking and initiating a mouseUp within the control's bounds.

A workaround I use exits the drag callback if a mouse button is not pressed, using hdi::core::mouseButtonsPressed(). Is there another approach for handling this Windows behavior?