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.esm.js CHANGED
@@ -949,16 +949,9 @@ function makePassiveEventOption() {
949
949
  }
950
950
 
951
951
  var isExcludedNode = function (node, excluded) {
952
- var targetTagName = node.tagName.toUpperCase();
953
- var isExcludedTag = excluded.find(function (tag) { return tag.toUpperCase() === targetTagName; });
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) {