Skip to content

Commit

Permalink
fix(scroller.ts): fix ios 13.4 bouncing
Browse files Browse the repository at this point in the history
fix #982
  • Loading branch information
theniceangel committed Jun 7, 2020
1 parent eb00a43 commit 08fb9df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/src/scroller/Scroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default class Scroller {
left: number
top: number
}
_reflow: number
resizeTimeout: number
lastClickTime: number | null
[key: string]: any
Expand Down Expand Up @@ -524,7 +525,9 @@ export default class Scroller {
if (xInBoundary && yInBoundary) {
return false
}

// fix ios 13.4 bouncing
// see it in issues 982
this._reflow = this.content.offsetHeight
// out of boundary
this.scrollTo(x, y, time, easing)

Expand Down

0 comments on commit 08fb9df

Please sign in to comment.