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

Replacing pixel based thresholds with physical dimensions based ones #169

Open
horriblename opened this issue Oct 30, 2024 · 0 comments
Open

Comments

@horriblename
Copy link
Owner

Currently gesture detection works something like this:

when user swipes more than X pixels in one direction, we detect a swipe gesture and do gesture things.

the value of X is a base constant scaled by the config value sensitivity. This is awful because different devices will need different sensitivity values and makes gestures very inconsistent.

I plan to replace pixel thresholds with physical dimensions (e.g. millimeter). dp (density independent pixels) seems to be a preferred unit in android development so maybe I'll base it off that

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