Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/5af4e79197b8552e2f78a348511ae276c9f0e990
...commit
http://git.netsurf-browser.org/netsurf.git/commit/5af4e79197b8552e2f78a348511ae276c9f0e990
...tree
http://git.netsurf-browser.org/netsurf.git/tree/5af4e79197b8552e2f78a348511ae276c9f0e990
The branch, master has been updated
via 5af4e79197b8552e2f78a348511ae276c9f0e990 (commit)
from d3ac0e71ab96a2db30bdbc231ed8e5682017d800 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=5af4e79197b8552e2f78a348511ae276c9f0e990
commit 5af4e79197b8552e2f78a348511ae276c9f0e990
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
RISC OS: Try to improve scroll wheel handling.
diff --git a/frontends/riscos/window.c b/frontends/riscos/window.c
index 2206ae8..c100549 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;
}
-----------------------------------------------------------------------
Summary of changes:
frontends/riscos/window.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/frontends/riscos/window.c b/frontends/riscos/window.c
index 2206ae8..c100549 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;
}
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]