forked from AuroraMiddleware/gtk
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:
parent
9eb356d9f2
commit
8e6a68c5fc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user