summaryrefslogtreecommitdiff
path: root/desktop/browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/browser.c')
-rw-r--r--desktop/browser.c7
1 files changed, 3 insertions, 4 deletions
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