Commit 9d275e38f117a2fd17932d11319150f0cb55942a

Authored by 梁灏
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 117 let bottomLoaderHeight = 0;
118 118 const container = this.$refs.scrollContainer;
119 119 const initialScrollTop = container.scrollTop;
120   - for (var i = 0; i < 20; i++) {
  120 + for (let i = 0; i < 20; i++) {
121 121 setTimeout(() => {
122 122 bottomLoaderHeight = Math.max(
123 123 bottomLoaderHeight,
... ... @@ -262,7 +262,7 @@
262 262 },
263 263 created(){
264 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 266 this.pointerMoveHandler = throttle(this.onPointerMove, 50, {leading: false});
267 267 }
268 268 };
... ...