RISC OS: Try to improve scroll wheel handling.

This commit is contained in:
Michael Drake 2020-05-24 11:36:06 +01:00
parent d3ac0e71ab
commit 5af4e79197
1 changed files with 4 additions and 2 deletions

View File

@ -1122,7 +1122,7 @@ ro_gui_window_scroll_action(struct gui_window *g,
step_x = SCROLL_TOP;
break;
default:
step_x = (visible_x * (scroll_x>>2)) >> 2;
step_x = (32 * (scroll_x / 4));
break;
}
@ -1148,7 +1148,9 @@ ro_gui_window_scroll_action(struct gui_window *g,
step_y = SCROLL_TOP;
break;
default:
step_y = -((visible_y * (scroll_y>>2)) >> 2);
step_y = -(32 * (scroll_y / 4));
NSLOG(netsurf, INFO, "Extended scroll request with N=%i",
(int) scroll_y);
break;
}