Skip to content

Commit 50bb8a1

Browse files
authored
Merge pull request v1ack#3 from legnaleurc/fix-scroll-spring-back
fix: iOS scroll-spring-back boundry condition
2 parents 2cd1637 + 1487ce9 commit 50bb8a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VirtualScroll.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
const scrollSize = getScrollSize()
227227
228228
// iOS scroll-spring-back behavior will make direction mistake
229-
if (offset < 0 || (offset + clientSize > scrollSize + 1) || !scrollSize) {
229+
if (offset < 0 || (offset + clientSize > scrollSize) || !scrollSize) {
230230
return
231231
}
232232

0 commit comments

Comments
 (0)