GtkScrolledWindow: reset scroll history if it contained no real history

Scroll history must refer to a timespan for the values to be valid, otherwise
we return FALSE, in this case the stored event(s) should be discarded anyway.
This commit is contained in:
Carlos Garnacho 2016-07-27 20:23:35 +02:00
parent 9eb356d9f2
commit 8e6a68c5fc

View File

@ -1347,7 +1347,10 @@ scroll_history_finish (GtkScrolledWindow *sw,
}
if (last == first)
return FALSE;
{
scroll_history_reset (sw);
return FALSE;
}
xunit = get_scroll_unit (sw, GTK_ORIENTATION_HORIZONTAL);
yunit = get_scroll_unit (sw, GTK_ORIENTATION_VERTICAL);