From e598e7c55604268fccc49fdbad02ff326daccaa7 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 6 Jun 2008 18:18:08 +0000 Subject: Change box scrollbar drag to happen on HOLDING. svn path=/trunk/netsurf/; revision=4282 --- desktop/browser.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'desktop/browser.c') diff --git a/desktop/browser.c b/desktop/browser.c index dfa05b367..346b232b6 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -2046,13 +2046,12 @@ const char *browser_window_scrollbar_click(struct browser_window *bw, /* in scrollbar */ status = messages_get(vert ? "ScrollV" : "ScrollH"); - /* respond on the click rather than the drag because it gives - the scrollbars a more solid, RISC OS feel */ - if (mouse & (BROWSER_MOUSE_PRESS_1 | BROWSER_MOUSE_PRESS_2)) { + if (mouse & (BROWSER_MOUSE_HOLDING_1 | + BROWSER_MOUSE_HOLDING_2)) { int x0 = 0, x1 = 0; int y0 = 0, y1 = 0; - if (mouse & BROWSER_MOUSE_PRESS_1) { + if (mouse & BROWSER_MOUSE_HOLDING_1) { bw->drag_type = vert ? DRAGGING_VSCROLL : DRAGGING_HSCROLL; } else -- cgit v1.2.3