summaryrefslogtreecommitdiff
path: root/desktop/scrollbar.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-05-11 10:36:15 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-05-11 10:36:15 +0000
commitdf081a08884bcf91ef94f679d6b3d69ab0042908 (patch)
tree15aafbcc629778118b77ce90dc51583e0e528baa /desktop/scrollbar.c
parent297f1dfebbf290b51d1f9fc0f453d7d07d66b91c (diff)
downloadnetsurf-df081a08884bcf91ef94f679d6b3d69ab0042908.tar.gz
netsurf-df081a08884bcf91ef94f679d6b3d69ab0042908.tar.bz2
Increase pointer drag range. Setting the clamps correctly seems to cause us not to get the movement event when we hit the clamp (at least on RISC OS).
svn path=/trunk/netsurf/; revision=12380
Diffstat (limited to 'desktop/scrollbar.c')
-rw-r--r--desktop/scrollbar.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/desktop/scrollbar.c b/desktop/scrollbar.c
index b518ed3ef..9349c382f 100644
--- a/desktop/scrollbar.c
+++ b/desktop/scrollbar.c
@@ -506,15 +506,15 @@ static void scrollbar_drag_start_internal(struct scrollbar *s, int x, int y,
/* \todo - some proper numbers please! */
if (s->horizontal) {
- msg.x0 = -1024;
- msg.x1 = 1024;
+ msg.x0 = -2048;
+ msg.x1 = 2048;
msg.y0 = 0;
msg.y1 = 0;
} else {
msg.x0 = 0;
msg.x1 = 0;
- msg.y0 = -1024;
- msg.y1 = 1024;
+ msg.y0 = -2048;
+ msg.y1 = 2048;
}
if (pair && s->pair != NULL) {
@@ -530,11 +530,11 @@ static void scrollbar_drag_start_internal(struct scrollbar *s, int x, int y,
s->pair->drag_content = content_drag;
if (s->pair->horizontal) {
- msg.x0 = -1024;
- msg.x1 = 1024;
+ msg.x0 = -2048;
+ msg.x1 = 2048;
} else {
- msg.y0 = -1024;
- msg.y1 = 1024;
+ msg.y0 = -2048;
+ msg.y1 = 2048;
}
}
msg.msg = SCROLLBAR_MSG_SCROLL_START;