|
|
@@ -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">
|