react-zoom-pan-pinch 3.6.0 → 3.6.1
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.
- package/dist/index.cjs.js +1 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1595,10 +1595,7 @@ var ZoomPanPinch = /** @class */ (function () {
|
|
|
1595
1595
|
if (!isAllowed)
|
|
1596
1596
|
return;
|
|
1597
1597
|
var isDoubleTap = _this.lastTouch && +new Date() - _this.lastTouch < 200;
|
|
1598
|
-
if (isDoubleTap
|
|
1599
|
-
_this.onDoubleClick(event);
|
|
1600
|
-
}
|
|
1601
|
-
else {
|
|
1598
|
+
if (!isDoubleTap) {
|
|
1602
1599
|
_this.lastTouch = +new Date();
|
|
1603
1600
|
handleCancelAnimation(_this);
|
|
1604
1601
|
var touches = event.touches;
|