fix: don't capture all mouse events
This commit is contained in:
parent
3e4a2b24e6
commit
6ea24b8518
1 changed files with 3 additions and 1 deletions
|
|
@ -1226,7 +1226,9 @@ where
|
|||
}
|
||||
Event::Mouse(MouseEvent::ButtonReleased(Button::Left)) => {
|
||||
state.dragging = None;
|
||||
shell.capture_event();
|
||||
if cursor_position.position_in(layout.bounds()).is_some() {
|
||||
shell.capture_event();
|
||||
}
|
||||
if let Some(on_auto_scroll) = &self.on_auto_scroll {
|
||||
shell.publish(on_auto_scroll(None));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue