From 1d827d2cf32fc6bcc3d2b39362ec67309c097f19 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 2 Aug 2012 12:06:47 +0100 Subject: Fix click travel tolerance calc. Has to travel more than 5px to become drag. --- framebuffer/gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framebuffer') diff --git a/framebuffer/gui.c b/framebuffer/gui.c index 6fad34666..062f765a4 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, -- cgit v1.2.3