|
|
@ -664,6 +664,8 @@ Range.prototype._onTouch = function (event) { // eslint-disable-line no-unused- |
|
|
|
this.props.touch.center = null; |
|
|
|
this.scaleOffset = 0; |
|
|
|
this.deltaDifference = 0; |
|
|
|
// Disable the browser default handling of this event.
|
|
|
|
util.preventDefault(event); |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
@ -675,6 +677,9 @@ Range.prototype._onPinch = function (event) { |
|
|
|
// only allow zooming when configured as zoomable and moveable
|
|
|
|
if (!(this.options.zoomable && this.options.moveable)) return; |
|
|
|
|
|
|
|
// Disable the browser default handling of this event.
|
|
|
|
util.preventDefault(event); |
|
|
|
|
|
|
|
this.props.touch.allowDragging = false; |
|
|
|
|
|
|
|
if (!this.props.touch.center) { |
|
|
|