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 Mobile Touch Events #229

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Fix Mobile Touch Events #229

wants to merge 3 commits into from

Conversation

zalo
Copy link

@zalo zalo commented Jan 6, 2025

Switches Mouse events for Pointer events, which should automagically make them work on both desktop and mobile browsers.

The rest of the changes are voodoo to prevent the default events browsers associate with dragging, double tapping, and other unsavory touch gestures 💀

@zalo
Copy link
Author

zalo commented Jan 6, 2025

@mkeeter In-case merely creating the PR did not @ you 😅

zalo added 3 commits January 10, 2025 08:23
Switches `Mouse` events for `Pointer` events, which should automagically make them work on both desktop and mobile browsers.
@mkeeter mkeeter enabled auto-merge (squash) January 10, 2025 13:23
@mkeeter
Copy link
Owner

mkeeter commented Jan 10, 2025

Thanks! At some point, I'd like to get proper multi-finger pan/zoom/tilt working, but this is a good start.

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