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) {
|
if (fromChanged) {
|
||||||
switch (_overscrollTypeFrom) {
|
switch (_overscrollTypeFrom) {
|
||||||
case OverscrollType::None:
|
case OverscrollType::None:
|
||||||
_overscroll = 0;
|
_overscroll = _overscrollAccumulated = 0;
|
||||||
applyScrollTo(0);
|
applyScrollTo(0);
|
||||||
break;
|
break;
|
||||||
case OverscrollType::Virtual:
|
case OverscrollType::Virtual:
|
||||||
|
|
@ -1185,7 +1185,7 @@ void ElasticScroll::setOverscrollTypes(
|
||||||
- (_state.visibleTill - _state.visibleFrom);
|
- (_state.visibleTill - _state.visibleFrom);
|
||||||
switch (_overscrollTypeTill) {
|
switch (_overscrollTypeTill) {
|
||||||
case OverscrollType::None:
|
case OverscrollType::None:
|
||||||
_overscroll = 0;
|
_overscroll = _overscrollAccumulated = 0;
|
||||||
applyScrollTo(max);
|
applyScrollTo(max);
|
||||||
break;
|
break;
|
||||||
case OverscrollType::Virtual:
|
case OverscrollType::Virtual:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue