We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35c0ad2 commit 832a5baCopy full SHA for 832a5ba
src/components/RecycleScroller.vue
@@ -298,8 +298,7 @@ export default {
298
299
// Skip update if use hasn't scrolled enough
300
if (checkPositionDiff) {
301
- let positionDiff = scroll.originalStart - this.$_lastUpdateScrollPosition
302
- if (positionDiff < 0) positionDiff = -positionDiff
+ const positionDiff = Math.abs(scroll.originalStart - this.$_lastUpdateScrollPosition)
303
if ((itemSize === null && positionDiff < minItemSize) || positionDiff < itemSize) {
304
return {
305
continuous: true,
0 commit comments