app: gimp_motion_buffer_eval_event(): always set last_read_motion_time
We need it for correctly requesting device history, so we must remember it also when returning FALSE and ignoring the event.
This commit is contained in:
@ -218,6 +218,11 @@ gimp_motion_buffer_eval_event (GimpMotionBuffer *buffer,
|
||||
gdouble distance = 1.0;
|
||||
gboolean event_fill = (inertia_factor > 0.0);
|
||||
|
||||
/* the last_read_motion_time most be set unconditionally, so set
|
||||
* it early
|
||||
*/
|
||||
buffer->last_read_motion_time = time;
|
||||
|
||||
/* Smoothing causes problems with cursor tracking when zoomed above
|
||||
* screen resolution so we need to supress it.
|
||||
*/
|
||||
@ -377,8 +382,6 @@ gimp_motion_buffer_eval_event (GimpMotionBuffer *buffer,
|
||||
|
||||
g_array_append_val (buffer->event_queue, *coords);
|
||||
|
||||
buffer->last_read_motion_time = time;
|
||||
|
||||
buffer->last_coords = *coords;
|
||||
buffer->last_motion_time = time;
|
||||
buffer->last_motion_delta_time = delta_time;
|
||||
|
Reference in New Issue
Block a user