浏览代码

18 react update and prerender check

asmer 3 月之前
父节点
当前提交
a563e7bab0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/SliderSiblingOnly.js

+ 2 - 2
src/SliderSiblingOnly.js

@@ -35,8 +35,8 @@ export default ({images = [], imgWidth=377, className, onChange, onClick, ref, s
     const onTouchEnd = () => {
         if (!containerRef.current)
             setTimeout(onTouchEnd, 20)
-        console.log('TOUCH END', inTouch.current, autoscroll.current, afterAutoscroll.current, 
-                                 containerRef.current.scrollLeft, containerRef.current.scrollWidth)
+        // console.log('TOUCH END', inTouch.current, autoscroll.current, afterAutoscroll.current, 
+        //                          containerRef.current.scrollLeft, containerRef.current.scrollWidth)
         if (inTouch.current){
             if (timeout.current) clearInterval(timeout.current)