diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2020-05-24 11:36:06 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2020-05-24 11:36:42 +0100 |
commit | 5af4e79197b8552e2f78a348511ae276c9f0e990 (patch) | |
tree | 1c055054406cf9ae9de2a3f767be3f0562f8e8c7 /frontends | |
parent | d3ac0e71ab96a2db30bdbc231ed8e5682017d800 (diff) | |
download | netsurf-5af4e79197b8552e2f78a348511ae276c9f0e990.tar.gz netsurf-5af4e79197b8552e2f78a348511ae276c9f0e990.tar.bz2 |
RISC OS: Try to improve scroll wheel handling.
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/riscos/window.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; } |