@lani.ground/react-image-viewer
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -159,8 +159,6 @@ "use strict"; | ||
(0, react_1.useEffect)(function () { | ||
var preventZoom = function (e) { | ||
if (e.touches.length > 1) { | ||
e.preventDefault(); | ||
} | ||
var cancelEvent = function (e) { | ||
e.preventDefault(); | ||
}; | ||
document.addEventListener('touchmove', preventZoom, { | ||
document.addEventListener('touchmove', cancelEvent, { | ||
passive: false, | ||
@@ -170,3 +168,3 @@ }); | ||
return function () { | ||
document.removeEventListener('touchmove', preventZoom); | ||
document.removeEventListener('touchmove', cancelEvent); | ||
unlockScroll(); | ||
@@ -173,0 +171,0 @@ }; |
@@ -154,8 +154,6 @@ var __assign = (this && this.__assign) || function () { | ||
useEffect(function () { | ||
var preventZoom = function (e) { | ||
if (e.touches.length > 1) { | ||
e.preventDefault(); | ||
} | ||
var cancelEvent = function (e) { | ||
e.preventDefault(); | ||
}; | ||
document.addEventListener('touchmove', preventZoom, { | ||
document.addEventListener('touchmove', cancelEvent, { | ||
passive: false, | ||
@@ -165,3 +163,3 @@ }); | ||
return function () { | ||
document.removeEventListener('touchmove', preventZoom); | ||
document.removeEventListener('touchmove', cancelEvent); | ||
unlockScroll(); | ||
@@ -168,0 +166,0 @@ }; |
{ | ||
"name": "@lani.ground/react-image-viewer", | ||
"description": "A React component for viewing images in a modal", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"license": "MIT", | ||
@@ -80,3 +80,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "4b223121d27a813a98864c47013e4b856b0b6e1a" | ||
"gitHead": "038ea842e9786af11d051acc0fd8f4b5ec8f75c1" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45108
825