@@ -23,6 +23,6 @@ code {
div {
}
-img {
- border: 1px dashed black;
-}
+/*img {*/
+ /*border: 1px dashed black;*/
+/*}*/
@@ -49,6 +49,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)
//if (afterAutoscroll.current) {