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

Fix an issue in Quality where the initial button press does not work on a touch device #259

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nathnolt
Copy link

Tested with: chromebook in touch mode,

The problem:
Due to the fact that the mouseenter event gets triggered when you click the button,
causing both mouseevent and click event to trigger right after each other,
making the click cancel out the touchenter event.

This pull request fixes the issue by keeping track of when the last call to hideSelector or showSelector happened,
and rejecting it when the time between the last one and the current one is less than 16 milliseconds ago.

…device (tested with chromebook in touch mode), due to the fact that the mouseenter event gets triggered when you click the button, causing both mouseevent and click event to trigger right after each other, making the click cancel out the touchenter event. It fixes it by keeping track of when the last displayType (hide / show) happened, and rejecting it when the time between the last one and the current one is less than 16 milliseconds ago.
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

Successfully merging this pull request may close these issues.

None yet

1 participant