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

Resizing initiates hover actions #49

Closed
tones111 opened this issue Dec 5, 2017 · 2 comments
Closed

Resizing initiates hover actions #49

tones111 opened this issue Dec 5, 2017 · 2 comments

Comments

@tones111
Copy link

tones111 commented Dec 5, 2017

When resizing a window via dragging the edge mouse hover effects can be seen during the drag when a component moves over the position where the mouse was initially pressed. This is most easily seen in the button example where the button color changes while actively resizing.

This is likely related to the concerns of #38

@christolliday
Copy link
Owner

Thanks for the issue, turns out it happened because the component that updates hover state has to cache the mouse position and recheck what's there when the layout changes, but when you resize the window the mouse moves outside of the window and no positions are reported. Should be fixed by 2633650
The fix was to check for the CursorLeft event and set the mouse position that's used to check what is hovered to None.

@tones111
Copy link
Author

tones111 commented Dec 7, 2017

Thanks for the fix. You've been making impressive progress. Hopefully I'll get familiar enough to make code contributions once the churn settles down a little. Really enjoying watching it progress and looking forward to see what it becomes. Thanks for all your hard work.

@tones111 tones111 closed this as completed Dec 7, 2017
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

2 participants