From 288bec7157bf654d121ebfd2828801b49beb34ec Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 20 Jul 2023 21:36:39 +0400 Subject: [PATCH] Fix overscroll modification. --- ui/widgets/elastic_scroll.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/widgets/elastic_scroll.cpp b/ui/widgets/elastic_scroll.cpp index 50b622c..221d790 100644 --- a/ui/widgets/elastic_scroll.cpp +++ b/ui/widgets/elastic_scroll.cpp @@ -1170,7 +1170,7 @@ void ElasticScroll::setOverscrollTypes( if (fromChanged) { switch (_overscrollTypeFrom) { case OverscrollType::None: - _overscroll = 0; + _overscroll = _overscrollAccumulated = 0; applyScrollTo(0); break; case OverscrollType::Virtual: @@ -1185,7 +1185,7 @@ void ElasticScroll::setOverscrollTypes( - (_state.visibleTill - _state.visibleFrom); switch (_overscrollTypeTill) { case OverscrollType::None: - _overscroll = 0; + _overscroll = _overscrollAccumulated = 0; applyScrollTo(max); break; case OverscrollType::Virtual: