Fix programmatic scroll closing detail pane

This commit is contained in:
Ming Ming 2021-04-11 19:13:54 +08:00
parent e234eb18d9
commit 81eabdf332

View file

@ -404,7 +404,7 @@ class _ViewerState extends State<Viewer> with TickerProviderStateMixin {
shouldAnimate: true);
});
});
} else {
} else if (scrollPos.userScrollDirection == ScrollDirection.forward) {
// downward, close the pane
Future.delayed(Duration.zero, () {
_closeDetailPane(_pageController.page.toInt(), shouldAnimate: true);