From 1c85232a6345d5dd9730a6ca675db1cbcf1e1db9 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 27 Oct 2013 18:48:58 +0000 Subject: Improve responsiveness of drags. --- riscos/mouse.c | 10 ++++++---- riscos/mouse.h | 5 ----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/riscos/mouse.c b/riscos/mouse.c index 5ba1260b7..c655340b4 100644 --- a/riscos/mouse.c +++ b/riscos/mouse.c @@ -234,11 +234,13 @@ void ro_mouse_kill(void *data) os_t ro_mouse_poll_interval(void) { - if (ro_mouse_drag_track_callback == NULL && - ro_mouse_poll_track_callback == NULL) - return 0; + if (ro_mouse_drag_track_callback != NULL) + return 4; + + if (ro_mouse_poll_track_callback != NULL) + return 10; - return 10; // \TODO Return 4 for DRAG_SELECTION && DRAG_SCROLL + return 0; } diff --git a/riscos/mouse.h b/riscos/mouse.h index e78a37eed..bcb3b50bd 100644 --- a/riscos/mouse.h +++ b/riscos/mouse.h @@ -24,11 +24,6 @@ #ifndef _NETSURF_RISCOS_MOUSE_H_ #define _NETSURF_RISCOS_MOUSE_H_ -enum ro_mouse_track_response { - RO_MOUSE_RESPONSE_LOW, - RO_MOUSE_RESPONSE_HIGH -}; - /** * Process Null polls for any drags and mouse trackers that are currently -- cgit v1.2.3