diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-08-24 20:44:47 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-08-24 20:44:47 +0000 |
commit | ecff5eaf8304c1333793b823fd27af30f97082f7 (patch) | |
tree | e834a067c157ffa223f19acf210f40eac60a290d /desktop/browser.c | |
parent | aa0b7ed5d7961e70a512aca2f687575d9b67f341 (diff) | |
download | netsurf-ecff5eaf8304c1333793b823fd27af30f97082f7.tar.gz netsurf-ecff5eaf8304c1333793b823fd27af30f97082f7.tar.bz2 |
During drags, prevent mouse interaction with other widgets.
svn path=/trunk/netsurf/; revision=12665
Diffstat (limited to 'desktop/browser.c')
-rw-r--r-- | desktop/browser.c | 11 |
1 files changed, 7 insertions, 4 deletions
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; |