Skip to content

Commit

Permalink
add pinchcancel handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed Aug 5, 2019
1 parent c9daf7f commit 958bdb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/map-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ZOOM_ACCEL = 0.01;
const EVENT_TYPES = {
WHEEL: ['wheel'],
PAN: ['panstart', 'panmove', 'panend'],
PINCH: ['pinchstart', 'pinchmove', 'pinchend'],
PINCH: ['pinchstart', 'pinchmove', 'pinchend', 'pinchcancel'],
DOUBLE_TAP: ['doubletap'],
KEYBOARD: ['keydown']
};
Expand Down Expand Up @@ -97,6 +97,7 @@ export default class MapController {
return this._onPinchStart(event);
case 'pinchmove':
return this._onPinch(event);
case 'pinchcancel':
case 'pinchend':
return this._onPinchEnd(event);
case 'doubletap':
Expand Down

0 comments on commit 958bdb7

Please sign in to comment.