We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35c0ad2 commit 552d7a1Copy full SHA for 552d7a1
src/components/RecycleScroller.vue
@@ -298,13 +298,15 @@ 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) {
+ console.log(`optimize`);
304
+
305
return {
306
continuous: true,
307
}
308
309
+ console.log(`render`);
310
311
312
0 commit comments