Fix incorrect state of ElasticScroll.
This commit is contained in:
parent
079d966e45
commit
ad852f0f4a
1 changed files with 6 additions and 4 deletions
|
|
@ -903,8 +903,10 @@ void ElasticScroll::updateState() {
|
|||
const auto delta = std::max(
|
||||
std::min(nowOverscroll - wasOverscroll, from),
|
||||
0);
|
||||
from -= delta;
|
||||
till -= delta;
|
||||
if (delta) {
|
||||
applyScrollTo(from - delta);
|
||||
return;
|
||||
}
|
||||
}
|
||||
setState({
|
||||
.visibleFrom = from,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue