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 touch not working #194

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

Fix touch not working #194

wants to merge 1 commit into from

Conversation

jackie-t
Copy link

Issue #191 is caused by binding both, click and touchstart events, so on mobile, if you just tap the toggle, both get triggered.
By binding only to the pointerdown event, you handle both, mobile and desktop in one event, and no longer double-trigger on mobile.

@palcarazm
Copy link
Owner

Thanks @jackie-t I tried to release a new version with your change this week.

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.

2 participants