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

This commit is contained in:
Michael Drake 2012-08-02 12:06:47 +01:00
parent c0bfe7dfdf
commit 1d827d2cf3
1 changed files with 2 additions and 2 deletions

View File

@ -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,