From 5af4e79197b8552e2f78a348511ae276c9f0e990 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 24 May 2020 11:36:06 +0100 Subject: RISC OS: Try to improve scroll wheel handling. --- frontends/riscos/window.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'frontends') diff --git a/frontends/riscos/window.c b/frontends/riscos/window.c index 2206ae8e8..c100549c1 100644 --- a/frontends/riscos/window.c +++ b/frontends/riscos/window.c @@ -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; } -- cgit v1.2.3