Skip to content

Commit b8153a9

Browse files
committed
Fixed iOS scroll to top spring-back
1 parent 2a54b16 commit b8153a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ const VirtualList = Vue.component('virtual-list', {
195195
const scrollSize = this.getScrollSize()
196196

197197
// iOS scroll-spring-back behavior will make direction mistake
198-
if (offset + clientSize > scrollSize || !scrollSize) {
198+
if (offset < 0 || (offset + clientSize > scrollSize) || !scrollSize) {
199199
return
200200
}
201201

0 commit comments

Comments
 (0)