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

Touch responsiveness of slider inaccurate after navigating to component using React Navigation #42

Open
javierroberts opened this issue Aug 22, 2020 · 1 comment

Comments

@javierroberts
Copy link

javierroberts commented Aug 22, 2020

It seems that the circular slider is not registering the correct location of my presses only when the component is mounted after being navigated to using react-navigation. I was able to identify the issue as being the px value obtained by this._circle.measure in setCircleCenter() of the CircularSlider component. The value of px is different if the component is loaded normally versus if it navigated to using react-navigation. In order to solve this, I simply hardcoded the value for px with the value that is obtained when the component loads normally. However, I am not sure if this solution is going to scale well. Does anyone know of any other solution to this problem that I can attempt? Thanks!

@deepakgoswami07
Copy link

Same issue I am also getting... any solution for this?

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