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

If I press too fast on the widget the onPress function get called but no transparency is applied #6

Open
MatriscianoSalvatore opened this issue Dec 5, 2023 · 1 comment

Comments

@MatriscianoSalvatore
Copy link

No description provided.

@nkshah2
Copy link
Owner

nkshah2 commented Dec 6, 2023

Hi @MatriscianoSalvatore

Thanks for the issue. So the reason why this happens is because the animation to show transparency takes a 100ms to finish, if you cancel the gesture or lift the pointer (which is your case) before that then the transparency animates back to its original.

So if you life your finger too fast it will reset its transparency too quickly to notice. I think from a design perspective this is fine because showing a delayed transparency after the user lifts their finger might appear as if there is some UI lag.

That being said I am open to a change where we allow the animation duration to be configurable. At the moment I do not have the bandwidth to make this change but will be happy to review a PR if this solution works for you.

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