Save scroll position only when draggable scrollbar is absent

This commit is contained in:
Vishnu Mohandas 2020-11-22 21:20:49 +05:30
parent 08bb9e0870
commit 4ef302f9a2

View file

@ -74,7 +74,9 @@ class _GalleryState extends State<Gallery> {
}
widget.selectedFiles.addListener(() {
setState(() {
_saveScrollPosition();
if (!_hasDraggableScrollbar) {
_saveScrollPosition();
}
});
});
if (widget.asyncLoader == null || widget.shouldLoadAll) {