Commit 9d275e38f117a2fd17932d11319150f0cb55942a
1 parent
c6487ddf
update Scroll
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/components/scroll/scroll.vue
@@ -117,7 +117,7 @@ | @@ -117,7 +117,7 @@ | ||
117 | let bottomLoaderHeight = 0; | 117 | let bottomLoaderHeight = 0; |
118 | const container = this.$refs.scrollContainer; | 118 | const container = this.$refs.scrollContainer; |
119 | const initialScrollTop = container.scrollTop; | 119 | const initialScrollTop = container.scrollTop; |
120 | - for (var i = 0; i < 20; i++) { | 120 | + for (let i = 0; i < 20; i++) { |
121 | setTimeout(() => { | 121 | setTimeout(() => { |
122 | bottomLoaderHeight = Math.max( | 122 | bottomLoaderHeight = Math.max( |
123 | bottomLoaderHeight, | 123 | bottomLoaderHeight, |
@@ -262,7 +262,7 @@ | @@ -262,7 +262,7 @@ | ||
262 | }, | 262 | }, |
263 | created(){ | 263 | created(){ |
264 | this.handleScroll = throttle(this.onScroll, 150, {leading: false}); | 264 | this.handleScroll = throttle(this.onScroll, 150, {leading: false}); |
265 | - this.pointerUpHandler = this.onPointerUp.bind(this), // because we need the same function to add and remove event handlers | 265 | + this.pointerUpHandler = this.onPointerUp.bind(this); // because we need the same function to add and remove event handlers |
266 | this.pointerMoveHandler = throttle(this.onPointerMove, 50, {leading: false}); | 266 | this.pointerMoveHandler = throttle(this.onPointerMove, 50, {leading: false}); |
267 | } | 267 | } |
268 | }; | 268 | }; |