From df081a08884bcf91ef94f679d6b3d69ab0042908 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 11 May 2011 10:36:15 +0000 Subject: 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 --- desktop/scrollbar.c | 16 ++++++++-------- 1 file 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; -- cgit v1.2.3