Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

MouseUp event processing #27

Open
VladimirMarkelov opened this issue Oct 18, 2017 · 0 comments
Open

MouseUp event processing #27

VladimirMarkelov opened this issue Oct 18, 2017 · 0 comments

Comments

@VladimirMarkelov
Copy link

While trying demos I ran into a small issue. It is not a major one but I think it can be improved. The good example is a slider widget. Start moving thumb of a slider and move a mouse pointer beyond the widget. Widget stops getting events. Now release mouse button. But mouse is still stuck to the slider widget: try moving mouse without clicking and you see that thumb is moving when you move mouse over the slider. It works this way until you do mouse click.
As I see in the code, mouse release event is processed only if the cursor is over the widget that has got mouse down event before. It is checked to generate OnClick event. From my point of view(and UI that I tried before does this way), mouse release must be processed always but in case of the cursor is not withing the old widget are then just untie mouse from widget(under_mose = None?).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant