Commit c886864b authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko

paginator: Set scroll params

21df0c02 has lost the duration, but it was longer than the carousel default. Reduce spring stiffness to have a longer transition.
parent 6505941d
......@@ -113,6 +113,8 @@ impl PaginatorWidget {
self.carousel_dots.set_carousel(Some(&self.carousel));
self.carousel.set_hexpand(true);
self.carousel.set_vexpand(true);
self.carousel
.set_scroll_params(&libadwaita::SpringParams::new(1.0, 0.5, 300.0));
self.carousel
.connect_position_notify(clone!(@weak p => move |_| {
......
Markdown is supported
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