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 for pinch zoom bug in IOS / Safari #683

Merged
merged 1 commit into from
Feb 8, 2021
Merged

Fix for pinch zoom bug in IOS / Safari #683

merged 1 commit into from
Feb 8, 2021

Conversation

bensweet86
Copy link
Contributor

After finally getting IOS to debug on a non-mac host, this PR fixes a pinch zoom issue with Safari on IOS where the pinch zoom becomes uncontrollable. Symptom is after a pinch zoom event, a single finger drag results in the map zooming in / out instead of repositioning the map.
Root cause is with IOS where a single event can have multiple touches registered. This is where a two finger pinch simultaneously has both fingers raised off the screen. Original code only removed one of those touches, leaving an active touch which caused the issue.
Tested with IOS14 / Safari, Edge / Chrome W10 and Android Chrome and appears to fix issue with IOS and not break other devices.

@Hypfer Hypfer merged commit 3c0a644 into Hypfer:master Feb 8, 2021
@bensweet86 bensweet86 deleted the ios-map-fix branch February 9, 2021 11:03
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants