You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if you hold your 2 fingers there for a short period it works when you move them but if you touch the screen with 2 fingers and immediately attempt to zoom using this method there is a delay. This delay does not seem to exist on desktop computers when doing the same gesture on a trackpad
Expected Behavior
Smooth delay-free zoom
Actual Behavior
Zoom delayed at initial 2 finger touch with immediate zoom
The text was updated successfully, but these errors were encountered:
I can't say I understand why that is there? Why should propagation of the touchmove event be stopped if it's not a drag? Does anyone know?
Another thing to consider if is drag should be called at all when multiple fingers are touching the map. I don't think it should, as drag is an operation you do with one finger. If any modes require handling touch with multiple fingers, they should use onTouchMove instead.
Calling onDrag when multiple fingers are touching the map causes a delay
when you start pinch zooming. This is because the pinch is interpreted
as a tap in the beginning, which causes stopPropagation to be called.
I think dragging is an action you only do with one finger, so therefore
I think not calling onDrag is the correct solution to this.
Fixesmapbox#962
mapbox-gl-js version: latest
mapbox-gl-draw version: latest
Steps to Trigger Behavior
if you hold your 2 fingers there for a short period it works when you move them but if you touch the screen with 2 fingers and immediately attempt to zoom using this method there is a delay. This delay does not seem to exist on desktop computers when doing the same gesture on a trackpad
Expected Behavior
Smooth delay-free zoom
Actual Behavior
Zoom delayed at initial 2 finger touch with immediate zoom
The text was updated successfully, but these errors were encountered: