bugfix(zoom): use global modifiers for checking if ctrl is used for zoom instead of mouse area events

example(copy): fixing copy example to use correct Method type
This commit is contained in:
ellieplayswow 2025-04-30 18:04:54 +01:00 committed by Jeremy Soller
parent 037190babd
commit 16c8c0df30
3 changed files with 7 additions and 67 deletions

View file

@ -4924,7 +4924,7 @@ impl Tab {
.on_resize(|_, _| Message::ScrollToFocus)
.on_back_press(move |_point_opt| Message::GoPrevious)
.on_forward_press(move |_point_opt| Message::GoNext)
.on_scroll(respond_to_scroll_direction);
.on_scroll(|delta| respond_to_scroll_direction(delta, self.modifiers));
if self.context_menu.is_some() {
mouse_area = mouse_area.on_right_press(move |_point_opt| Message::ContextMenu(None));