File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,7 @@ import Animated, {
1919 useValue ,
2020} from "react-native-reanimated" ;
2121import { FlatList , State as GestureState } from "react-native-gesture-handler" ;
22- import {
23- DEFAULT_PROPS ,
24- SCROLL_POSITION_TOLERANCE ,
25- isAndroid ,
26- } from "../constants" ;
22+ import { DEFAULT_PROPS , SCROLL_POSITION_TOLERANCE } from "../constants" ;
2723import { useNode } from "../hooks/useNode" ;
2824import { useProps } from "../context/propsContext" ;
2925import { useAnimatedValues } from "../context/animatedValueContext" ;
@@ -146,9 +142,7 @@ export function useAutoScroll<T>() {
146142 return - 1 ;
147143 const distFromEdge = scrollUp ? distFromTop : distFromBottom ;
148144 const speedPct = 1 - distFromEdge / autoscrollThreshold ! ;
149- // Android scroll speed seems much faster than ios
150- const speed = isAndroid ? autoscrollSpeed / 10 : autoscrollSpeed ;
151- const offset = speedPct * speed ;
145+ const offset = speedPct * autoscrollSpeed ;
152146 const targetOffset = scrollUp
153147 ? Math . max ( 0 , scrollOffset - offset )
154148 : scrollOffset + offset ;
You can’t perform that action at this time.
0 commit comments