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

End event's e.top property on android #51

Open
Max87ZA opened this issue Oct 30, 2020 · 0 comments
Open

End event's e.top property on android #51

Max87ZA opened this issue Oct 30, 2020 · 0 comments

Comments

@Max87ZA
Copy link

Max87ZA commented Oct 30, 2020

Hi guys,
I use TiDraggable and created a "snapping points" on iOS. That means, depending where you finish drag event, view automatically snaps to top, initial position or closes the parent view(I use it as a filter similar to Apple Maps.app).
When I moved my fully fuctional code from iOS to android, it wasn't working at all. Problem is, that iOS returns different value for width/height property than android(known difference).
So I discovered, that TiDraggable returns bad numbers as e.top in events and it needs to be divided by logical density factor to get results similar to iOS...
This is not really a bug, maybe a note to someone who is doing similar task as I do and have similar problem as I had. So maybe this note can help someone to quickly adopt code migrated from iOS to Android.
Thanks

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