DrChai / react-native-rheostat

inspired by Airbnb's rheostat, a powerful slider with assorted data visualized charts
MIT License
117 stars 18 forks source link

previousHandlePos is undefined #37

Open AE0011 opened 2 years ago

AE0011 commented 2 years ago

sometimes this error happen on android withRheostat.tsx line 166 previousHandlePos is undefined const proposedPosition = (gestureState.dx / width) * PERCENT_FULL + previousHandlePos[idx];

screenshot_error

DrChai commented 2 years ago

🤔 that is strange, so onPanResponderGrant wasn't triggered on the touch gesture sometimes on android.

DrChai commented 2 years ago

can you try to change onPanResponderTerminationRequest: () => true on this line. see if it is resolved

AE0011 commented 2 years ago

Thank you for your answer. actually, I couldn't reproduce it after 100 times test :D In both true and false (onPanResponderTerminationRequest) I'm not sure what was the cause