Improve responsiveness of drags.
This commit is contained in:
parent
2277fb0284
commit
1c85232a63
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue