summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Johnson <yut23@gvljohnsons.com>2023-04-05 19:06:13 +0200
committerChristian Persch <chpe@src.gnome.org>2023-04-05 19:06:13 +0200
commit19acc51708d9e75ef2b314aa026467570e0bd8ee (patch)
treee3a8153f46fc36c6cd4962580f8d3910c4510281
parent0cade2cf3713142e0fc606936066b840fc22287c (diff)
downloadvte-19acc51708d9e75ef2b314aa026467570e0bd8ee.tar.gz
emulation: Fix invalid mouse scroll event on window edge
Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/2621
-rw-r--r--src/vte.cc2
1 files changed, 1 insertions, 1 deletions
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 */);