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

onChange doesn't correctly report position for non-100% snap point #307

Open
tibbe opened this issue Jul 17, 2023 · 1 comment
Open

onChange doesn't correctly report position for non-100% snap point #307

tibbe opened this issue Jul 17, 2023 · 1 comment

Comments

@tibbe
Copy link

tibbe commented Jul 17, 2023

Printed out the offsetFromBottom value as indicated in https://rnas.vercel.app/guides/position and for a 55% snap point (of a total height of 600dp) it reports offset as 133dp, which isn't correct. For the 100% point it correctly reports 600dp and for the closed card it reports -449.4401072839744dp, which is also curious.

@tibbe
Copy link
Author

tibbe commented Jul 17, 2023

Used the same repro case as in #306. Then I get the following offsetFromBottom numbers:

100%:  550dp
55%: 55.5dp
0%: -495.3001743516593dp

I'd say this is not working as intended. :)

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

1 participant