tvcharts 0.9.14 → 0.9.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -200,6 +200,9 @@ var RoamController = /** @class */function (_super) {
|
|
|
200
200
|
this._startKineticScroll();
|
|
201
201
|
}
|
|
202
202
|
this._dragging = false;
|
|
203
|
+
if (this._startPinchDistance) {
|
|
204
|
+
this._startPinchDistance = undefined;
|
|
205
|
+
}
|
|
203
206
|
}
|
|
204
207
|
};
|
|
205
208
|
RoamController.prototype._mousewheelHandler = function (e) {
|
|
@@ -261,6 +264,9 @@ var RoamController = /** @class */function (_super) {
|
|
|
261
264
|
this._originX = Math.floor(e.pinchX);
|
|
262
265
|
return;
|
|
263
266
|
}
|
|
267
|
+
if (!this._startPinchDistance) {
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
264
270
|
var currentDistance = getDistance(touches[0], touches[1]);
|
|
265
271
|
var scale = currentDistance / this._startPinchDistance;
|
|
266
272
|
var zoomScale = (scale - this._prevPinchScale) * 5;
|