Improve responsiveness of drags.

This commit is contained in:
Michael Drake 2013-10-27 18:48:58 +00:00
parent 2277fb0284
commit 1c85232a63
2 changed files with 6 additions and 9 deletions

View File

@ -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;
return 10; // \TODO Return 4 for DRAG_SELECTION && DRAG_SCROLL
if (ro_mouse_poll_track_callback != NULL)
return 10;
return 0;
}

View File

@ -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