Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/9178ede40bf0c330072f787ee375fc601cab9974
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/9178ede40bf0c330072f787ee375fc601cab9974
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/9178ede40bf0c330072f787ee375fc601cab9974

The branch, master has been updated
       via  9178ede40bf0c330072f787ee375fc601cab9974 (commit)
      from  c8d76e68cac290b1d753ec9f1c7b7ee6fb0f71b7 (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=9178ede40bf0c330072f787ee375fc601cab9974
commit 9178ede40bf0c330072f787ee375fc601cab9974
Author: Michael Drake <t...@netsurf-browser.org>
Commit: Michael Drake <t...@netsurf-browser.org>

    Avoid double/triple click stuff for scrollwheeling.

diff --git a/framebuffer/gui.c b/framebuffer/gui.c
index e8be715..a6bbd71 100644
--- a/framebuffer/gui.c
+++ b/framebuffer/gui.c
@@ -729,7 +729,9 @@ fb_browser_window_click(fbtk_widget_t *widget, 
fbtk_callback_info *cbi)
 
                /* Determine if it's a double or triple click, allowing
                 * 0.5 seconds (50cs) between clicks */
-               if (time_now < last_click.time + 50) {
+               if (time_now < last_click.time + 50 &&
+                               cbi->event->value.keycode != NSFB_KEY_MOUSE_4 &&
+                               cbi->event->value.keycode != NSFB_KEY_MOUSE_5) {
                        if (last_click.type == CLICK_SINGLE) {
                                /* Set double click */
                                mouse |= BROWSER_MOUSE_DOUBLE_CLICK;


-----------------------------------------------------------------------

Summary of changes:
 framebuffer/gui.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/framebuffer/gui.c b/framebuffer/gui.c
index e8be715..a6bbd71 100644
--- a/framebuffer/gui.c
+++ b/framebuffer/gui.c
@@ -729,7 +729,9 @@ fb_browser_window_click(fbtk_widget_t *widget, 
fbtk_callback_info *cbi)
 
                /* Determine if it's a double or triple click, allowing
                 * 0.5 seconds (50cs) between clicks */
-               if (time_now < last_click.time + 50) {
+               if (time_now < last_click.time + 50 &&
+                               cbi->event->value.keycode != NSFB_KEY_MOUSE_4 &&
+                               cbi->event->value.keycode != NSFB_KEY_MOUSE_5) {
                        if (last_click.type == CLICK_SINGLE) {
                                /* Set double click */
                                mouse |= BROWSER_MOUSE_DOUBLE_CLICK;


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
netsurf-commits@netsurf-browser.org
http://vlists.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to