Commit ff9a062b authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko
Browse files

leaflet: Correctly handle 0 duration for swipe snap-back


Signed-off-by: Alexander Mikhaylenko's avatarAlexander Mikhaylenko <alexm@gnome.org>
parent a19861ab
......@@ -3575,6 +3575,7 @@ hdy_leaflet_end_swipe (HdySwipeable *swipeable,
hdy_leaflet_schedule_child_ticks (self);
if (hdy_get_enable_animations (GTK_WIDGET (self)) &&
duration != 0 &&
get_old_child_transition_type (self) != HDY_LEAFLET_CHILD_TRANSITION_TYPE_NONE) {
gtk_progress_tracker_start (&priv->child_transition.tracker,
duration * 1000,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment