From 19acc51708d9e75ef2b314aa026467570e0bd8ee Mon Sep 17 00:00:00 2001 From: Eric Johnson Date: Wed, 5 Apr 2023 19:06:13 +0200 Subject: emulation: Fix invalid mouse scroll event on window edge Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/2621 --- src/vte.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vte.cc b/src/vte.cc index b3542038..5f6bd15f 100644 --- a/src/vte.cc +++ b/src/vte.cc @@ -9577,7 +9577,7 @@ Terminal::widget_mouse_scroll(vte::platform::ScrollEvent const& event) cnt = -cnt; for (i = 0; i < cnt; i++) { /* Encode the parameters and send them to the app. */ - feed_mouse_event(grid_coords_from_view_coords(m_mouse_last_position), + feed_mouse_event(confined_grid_coords_from_view_coords(m_mouse_last_position), button, false /* not drag */, false /* not release */); -- cgit v1.2.1