summaryrefslogtreecommitdiff
path: root/src/testing.c
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2022-05-07 12:25:40 +0100
committerBram Moolenaar <Bram@vim.org>2022-05-07 12:25:40 +0100
commitc27747e6ddcbda7d1d3b39867898f746dc4db471 (patch)
tree0ba88dccf18f52a745e746de249f8a7de752b060 /src/testing.c
parent8e4b76da1d7e987d43ca960dfbc372d1c617466f (diff)
downloadvim-git-c27747e6ddcbda7d1d3b39867898f746dc4db471.tar.gz
patch 8.2.4902: mouse wheel scrolling is inconsistentv8.2.4902
Problem: Mouse wheel scrolling is inconsistent. Solution: Use the MS-Winows system setting. (closes #10368)
Diffstat (limited to 'src/testing.c')
-rw-r--r--src/testing.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testing.c b/src/testing.c
index 334012302..572dcdcff 100644
--- a/src/testing.c
+++ b/src/testing.c
@@ -1393,6 +1393,11 @@ test_gui_mouse_event(dict_T *args)
repeated_click = (int)dict_get_number(args, (char_u *)"multiclick");
mods = (int)dict_get_number(args, (char_u *)"modifiers");
+ // Reset the scroll values to known values.
+ // XXX: Remove this when/if the scroll step is made configurable.
+ mouse_set_hor_scroll_step(6);
+ mouse_set_vert_scroll_step(3);
+
gui_send_mouse_event(button, TEXT_X(col - 1), TEXT_Y(row - 1),
repeated_click, mods);
}