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

Merged
merged 1 commit into from
Dec 8, 2024
Merged

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.

@palcarazm palcarazm changed the base branch from v5 to fix/touch-event December 8, 2024 16:07
@palcarazm palcarazm merged commit e4badd8 into palcarazm:fix/touch-event Dec 8, 2024
1 check passed
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