Smooth out auto-scrolling speed scaling in scrollable
This commit is contained in:
parent
519e7ae414
commit
eadd7b8e81
2 changed files with 32 additions and 20 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue