Smooth out auto-scrolling speed scaling in scrollable

This commit is contained in:
Héctor Ramón Jiménez 2025-11-28 06:29:25 +01:00
parent 519e7ae414
commit eadd7b8e81
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 32 additions and 20 deletions

View file

@ -275,7 +275,9 @@ impl Gallery {
.height(grid::aspect_ratio(Preview::WIDTH, Preview::HEIGHT))
.spacing(10);
let content = container(scrollable(gallery).spacing(10)).padding(10);
let content =
container(scrollable(gallery).spacing(10).auto_scroll(true))
.padding(10);
let viewer = self.viewer.view(self.now);
stack![content, viewer].into()