Implement touch_scroll_multiplier

This commit is contained in:
Maxim Baz
2018-11-10 12:33:47 +01:00
parent 3f77a2044e
commit 5e27c21856
4 changed files with 9 additions and 2 deletions

View File

@@ -549,7 +549,7 @@ scroll_event(double UNUSED xoffset, double yoffset, int flags) {
int s;
bool is_high_resolution = flags & 1;
if (is_high_resolution) {
yoffset *= global_state.callback_os_window->viewport_y_ratio * OPT(wheel_scroll_multiplier);
yoffset *= OPT(touch_scroll_multiplier);
if (yoffset * global_state.callback_os_window->pending_scroll_pixels < 0) {
global_state.callback_os_window->pending_scroll_pixels = 0; // change of direction
}