Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/1d827d2cf32fc6bcc3d2b39362ec67309c097f19
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/1d827d2cf32fc6bcc3d2b39362ec67309c097f19
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/1d827d2cf32fc6bcc3d2b39362ec67309c097f19

The branch, master has been updated
       via  1d827d2cf32fc6bcc3d2b39362ec67309c097f19 (commit)
      from  c0bfe7dfdff84f5072975d38263b6fa8d6594f9a (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/commitdiff/1d827d2cf32fc6bcc3d2b39362ec67309c097f19
commit 1d827d2cf32fc6bcc3d2b39362ec67309c097f19
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    Fix click travel tolerance calc.  Has to travel more than 5px to become 
drag.

diff --git a/framebuffer/gui.c b/framebuffer/gui.c
index 6fad346..062f765 100644
--- a/framebuffer/gui.c
+++ b/framebuffer/gui.c
@@ -705,8 +705,8 @@ fb_browser_window_move(fbtk_widget_t *widget, 
fbtk_callback_info *cbi)
        int y = (cbi->y + bwidget->scrolly) / gw->bw->scale;
 
        if (gui_drag.state == GUI_DRAG_PRESSED &&
-                       (abs(x - gui_drag.x) < 5 ||
-                        abs(y - gui_drag.y) < 5)) {
+                       (abs(x - gui_drag.x) > 5 ||
+                        abs(y - gui_drag.y) > 5)) {
                /* Drag started */
                if (gui_drag.button == 1) {
                        browser_window_mouse_click(gw->bw,


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

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

diff --git a/framebuffer/gui.c b/framebuffer/gui.c
index 6fad346..062f765 100644
--- a/framebuffer/gui.c
+++ b/framebuffer/gui.c
@@ -705,8 +705,8 @@ fb_browser_window_move(fbtk_widget_t *widget, 
fbtk_callback_info *cbi)
        int y = (cbi->y + bwidget->scrolly) / gw->bw->scale;
 
        if (gui_drag.state == GUI_DRAG_PRESSED &&
-                       (abs(x - gui_drag.x) < 5 ||
-                        abs(y - gui_drag.y) < 5)) {
+                       (abs(x - gui_drag.x) > 5 ||
+                        abs(y - gui_drag.y) > 5)) {
                /* Drag started */
                if (gui_drag.button == 1) {
                        browser_window_mouse_click(gw->bw,


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://vlists.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to