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

Support touch events for pre-iOS13 devices #110

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

Conversation

johnservinis
Copy link

The slider didn't work on my iPad Mini 2 (iOS 12). Another user had the same issue so I've put a PR together for both of us.

The issue is that PointerEvent is only available in Safari/Webkit from iOS13+ (per https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/pointerdown_event#browser_compatibility), so this PR introduces a fallback to TouchEvent.

If you prefer not to support < iOS12, just discard this and I'll use my fork. I haven't actually tested that every action works properly on these legacy devices, because I'm only using the slider for my personal apps.

Many thanks for the great card.

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.

1 participant