Commit 091052fe authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko Committed by Adrien Plazas

paginator: Support disabling animation

While there's nothing to be done with stick-to-finger movement, at least
snap-back should be instant.
parent fff0d986
......@@ -584,7 +584,7 @@ hdy_paginator_box_animate (HdyPaginatorBox *self,
hdy_paginator_box_stop_animation (self);
if (duration <= 0) {
if (duration <= 0 || !hdy_get_enable_animations (GTK_WIDGET (self))) {
hdy_paginator_box_set_position (self, position);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment