Skip to content

Commit

Permalink
Stop PointerMove events going through menu (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
aalhitennf authored Mar 7, 2024
1 parent 764857c commit 1ec918e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/window_handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1477,6 +1477,7 @@ fn context_menu_view(
context_menu_size.set(rect.size());
})
.on_event_stop(EventListener::PointerDown, move |_| {})
.on_event_stop(EventListener::PointerMove, move |_| {})
.keyboard_navigatable()
.on_event_stop(EventListener::KeyDown, move |event| {
if let Event::KeyDown(event) = event {
Expand Down

0 comments on commit 1ec918e

Please sign in to comment.