Add some buffer to the scroll threshold

This commit is contained in:
Ming Ming 2021-04-11 19:06:24 +08:00
parent c902d7ca20
commit e234eb18d9

View file

@ -395,7 +395,7 @@ class _ViewerState extends State<Viewer> with TickerProviderStateMixin {
_onDetailPaneClosed();
});
} else if (scrollPos.pixels <
_calcDetailPaneOpenedScrollPosition(index)) {
_calcDetailPaneOpenedScrollPosition(index) - 1) {
if (scrollPos.userScrollDirection == ScrollDirection.reverse) {
// upward, open the pane to its minimal size
Future.delayed(Duration.zero, () {