Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Touch events are behind a flag in Edge, even on touchscreen devices. 🤷♂️ However, Edge will dispatch mouse events in response to touch input -- in certain circumstances which are not well documented. It seems that it depends on the
touch-action
CSS property being present on particular elements. We previously settouch-action: none
on the.mapboxgl-canvas-container
element, but this is apparently not enough for Edge. In my tests settingtouch-action: none
on the body element works, as does settingtouch-action: none
on both the canvas container and the canvas. Since we don't want to affect touch-action on the entire page, here's the latter solution.Note that this doesn't fix pinch zooming or touch rotating. Until touch events are unflagged by default, the only way to support those is via pointer events.
Refs #1928.