张延森 2 vuotta sitten
vanhempi
commit
5b31bf18e3
1 muutettua tiedostoa jossa 0 lisäystä ja 3 poistoa
  1. 0
    3
      src/utils/scroll.js

+ 0
- 3
src/utils/scroll.js Näytä tiedosto

8
   const scrollEnd = { value: undefined };
8
   const scrollEnd = { value: undefined };
9
   
9
   
10
   const onScroll = (e) => {
10
   const onScroll = (e) => {
11
-    console.log('scrolling', scrolling, e);
12
-
13
     if (!scrolling) {
11
     if (!scrolling) {
14
       if (typeof scrollStart.value === 'function') {
12
       if (typeof scrollStart.value === 'function') {
15
         scrollStart.value(e);
13
         scrollStart.value(e);
38
     }, timeDiff);
36
     }, timeDiff);
39
   }
37
   }
40
 
38
 
41
-  console.log('scroll', dom);
42
   dom.addEventListener('scroll', onScroll);
39
   dom.addEventListener('scroll', onScroll);
43
 
40
 
44
   return {
41
   return {