From ecff5eaf8304c1333793b823fd27af30f97082f7 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 24 Aug 2011 20:44:47 +0000 Subject: During drags, prevent mouse interaction with other widgets. svn path=/trunk/netsurf/; revision=12665 --- desktop/browser.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'desktop') diff --git a/desktop/browser.c b/desktop/browser.c index 4062bd2fa..21d900f11 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -1890,7 +1890,7 @@ void browser_window_mouse_track(struct browser_window *bw, } /* Browser window's horizontal scrollbar */ - if (bw->scroll_x != NULL) { + if (bw->scroll_x != NULL && bw->drag_type != DRAGGING_SCR_Y) { int scr_x, scr_y; browser_window_get_scrollbar_pos(bw, true, &scr_x, &scr_y); scr_x = x - scr_x - scrollbar_get_offset(bw->scroll_x); @@ -1898,8 +1898,10 @@ void browser_window_mouse_track(struct browser_window *bw, if ((scr_x > 0 && scr_x < browser_window_get_scrollbar_len(bw, true) && - scr_y > 0 && scr_y < SCROLLBAR_WIDTH) || + scr_y > 0 && scr_y < SCROLLBAR_WIDTH && + bw->drag_type == DRAGGING_NONE) || bw->drag_type == DRAGGING_SCR_X) { + /* Start a scrollbar drag, or continue existing drag */ status = scrollbar_mouse_action(bw->scroll_x, mouse, scr_x, scr_y); pointer = GUI_POINTER_DEFAULT; @@ -1921,9 +1923,10 @@ void browser_window_mouse_track(struct browser_window *bw, if ((scr_y > 0 && scr_y < browser_window_get_scrollbar_len(bw, false) && - scr_x > 0 && scr_x < SCROLLBAR_WIDTH) || + scr_x > 0 && scr_x < SCROLLBAR_WIDTH && + bw->drag_type == DRAGGING_NONE) || bw->drag_type == DRAGGING_SCR_Y) { - + /* Start a scrollbar drag, or continue existing drag */ status = scrollbar_mouse_action(bw->scroll_y, mouse, scr_x, scr_y); pointer = GUI_POINTER_DEFAULT; -- cgit v1.2.3