react-zoom-pan-pinch 3.4.1 → 3.4.2
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 +2 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -9
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -949,16 +949,9 @@ function makePassiveEventOption() {
|
|
|
949
949
|
}
|
|
950
950
|
|
|
951
951
|
var isExcludedNode = function (node, excluded) {
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
if (isExcludedTag)
|
|
955
|
-
return true;
|
|
956
|
-
var isExcludedClassName = excluded.find(function (className) {
|
|
957
|
-
return node.classList.contains(className);
|
|
952
|
+
return excluded.some(function (exclude) {
|
|
953
|
+
return node.matches("".concat(exclude, ", .").concat(exclude, ", ").concat(exclude, " *, .").concat(exclude, " *"));
|
|
958
954
|
});
|
|
959
|
-
if (isExcludedClassName)
|
|
960
|
-
return true;
|
|
961
|
-
return false;
|
|
962
955
|
};
|
|
963
956
|
var cancelTimeout = function (timeout) {
|
|
964
957
|
if (timeout) {
|