mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.4902: mouse wheel scrolling is inconsistent
Problem: Mouse wheel scrolling is inconsistent. Solution: Use the MS-Winows system setting. (closes #10368)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user