Leon пре 2 година
родитељ
комит
cae6c9704b
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      src/components/input/SlidngScale.tsx

+ 3 - 3
src/components/input/SlidngScale.tsx

@@ -69,7 +69,7 @@ export default function Component(props: {
 
     const handleScroll = throttle((e) => {
 
-
+        console.log(e)
         if (timer) {
             clearTimeout(timer)
             setTimer(null)
@@ -86,7 +86,7 @@ export default function Component(props: {
 
 
 
-    });
+    },200);
 
     function dragStart(e) {
         setIsDraging(true)
@@ -164,7 +164,7 @@ export default function Component(props: {
                 onScrollEnd={scrollEnd}
                 onDragEnd={dragEnd}
                 onDragStart={dragStart}
-                onScroll={scrollContent}
+                onScroll={handleScroll}
                 enhanced
             >
                 <View className="scrollContent">