Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

previousHandlePos is undefined #37

Open
AE0011 opened this issue Apr 13, 2022 · 3 comments
Open

previousHandlePos is undefined #37

AE0011 opened this issue Apr 13, 2022 · 3 comments

Comments

@AE0011
Copy link
Contributor

AE0011 commented Apr 13, 2022

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
Copy link
Owner

DrChai commented Apr 14, 2022

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

@DrChai
Copy link
Owner

DrChai commented Apr 14, 2022

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

@AE0011
Copy link
Contributor Author

AE0011 commented Apr 17, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants