Skip to content

Produce and handle CursorEntered and CursorLeft#289

Merged
hecrj merged 2 commits into
masterfrom
fix/cursor-events
Apr 13, 2020
Merged

Produce and handle CursorEntered and CursorLeft#289
hecrj merged 2 commits into
masterfrom
fix/cursor-events

Conversation

@hecrj

@hecrj hecrj commented Apr 11, 2020

Copy link
Copy Markdown
Member

Fixes #287.

hecrj added 2 commits April 12, 2020 00:37
For now, we just set the cursor position to some negative coordinates.
This is a temporary hack until we are able to encode cursor
availability. Layers and/or multi-window support will make this
apparent.
@hecrj hecrj added the bug Something isn't working label Apr 11, 2020
@hecrj hecrj added this to the 0.1.1 milestone Apr 11, 2020
@hecrj hecrj self-assigned this Apr 11, 2020
@hecrj hecrj merged commit bc70ba1 into master Apr 13, 2020
@hecrj hecrj deleted the fix/cursor-events branch April 13, 2020 02:33
hecrj added a commit that referenced this pull request Apr 17, 2020
`winit` seems to produce `CursorEntered` and `CursorLeft` events after
wheel scrolling for no apparent reason (?). This causes annoying flickering when hovering some widgets on a scrollable.

I should investigate this further. We are rolling back the fix for the
time being.
hecrj added a commit that referenced this pull request Apr 26, 2020
`winit` seems to produce `CursorEntered` and `CursorLeft` events after
wheel scrolling for no apparent reason (?). This causes annoying flickering when hovering some widgets on a scrollable.

I should investigate this further. We are rolling back the fix for the
time being.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iced_native::input::mouse::Event::CursorLeft not emitted when the cursor leaves the window

1 participant