Save scroll position only when draggable scrollbar is absent
This commit is contained in:
parent
08bb9e0870
commit
4ef302f9a2
1 changed files with 3 additions and 1 deletions
|
@ -74,7 +74,9 @@ class _GalleryState extends State<Gallery> {
|
|||
}
|
||||
widget.selectedFiles.addListener(() {
|
||||
setState(() {
|
||||
_saveScrollPosition();
|
||||
if (!_hasDraggableScrollbar) {
|
||||
_saveScrollPosition();
|
||||
}
|
||||
});
|
||||
});
|
||||
if (widget.asyncLoader == null || widget.shouldLoadAll) {
|
||||
|
|
Loading…
Add table
Reference in a new issue