Fix overscroll modification.
This commit is contained in:
parent
0f20eb152a
commit
288bec7157
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue