diff --git a/lib/bodyScrollLock.es6.js b/lib/bodyScrollLock.es6.js index fa4f42b9..074c70fd 100644 --- a/lib/bodyScrollLock.es6.js +++ b/lib/bodyScrollLock.es6.js @@ -13,11 +13,12 @@ if (typeof window !== 'undefined') { return undefined; } }; - window.addEventListener('testPassive', null, passiveTestOptions); - window.removeEventListener('testPassive', null, passiveTestOptions); + /* @__PURE__ */window.addEventListener('testPassive', null, passiveTestOptions); + /* @__PURE__ */window.removeEventListener('testPassive', null, passiveTestOptions); } -const isIosDevice = typeof window !== 'undefined' && window.navigator && window.navigator.platform && (/iP(ad|hone|od)/.test(window.navigator.platform) || window.navigator.platform === 'MacIntel' && window.navigator.maxTouchPoints > 1); +const isIosDevice = typeof window !== 'undefined' && window.navigator && window.navigator.platform && ( +/* @__PURE__ *//iP(ad|hone|od)/.test(window.navigator.platform) || window.navigator.platform === 'MacIntel' && window.navigator.maxTouchPoints > 1); let locks = []; diff --git a/lib/bodyScrollLock.esm.js b/lib/bodyScrollLock.esm.js index 23518372..c58efde3 100644 --- a/lib/bodyScrollLock.esm.js +++ b/lib/bodyScrollLock.esm.js @@ -13,11 +13,12 @@ if (typeof window !== 'undefined') { return undefined; } }; - window.addEventListener('testPassive', null, passiveTestOptions); - window.removeEventListener('testPassive', null, passiveTestOptions); + /* @__PURE__ */window.addEventListener('testPassive', null, passiveTestOptions); + /* @__PURE__ */window.removeEventListener('testPassive', null, passiveTestOptions); } -var isIosDevice = typeof window !== 'undefined' && window.navigator && window.navigator.platform && (/iP(ad|hone|od)/.test(window.navigator.platform) || window.navigator.platform === 'MacIntel' && window.navigator.maxTouchPoints > 1); +var isIosDevice = typeof window !== 'undefined' && window.navigator && window.navigator.platform && ( +/* @__PURE__ *//iP(ad|hone|od)/.test(window.navigator.platform) || window.navigator.platform === 'MacIntel' && window.navigator.maxTouchPoints > 1); var locks = []; diff --git a/lib/bodyScrollLock.js b/lib/bodyScrollLock.js index a8dfa1f1..22dcbca2 100644 --- a/lib/bodyScrollLock.js +++ b/lib/bodyScrollLock.js @@ -42,11 +42,12 @@ return undefined; } }; - window.addEventListener('testPassive', null, passiveTestOptions); - window.removeEventListener('testPassive', null, passiveTestOptions); + /* @__PURE__ */window.addEventListener('testPassive', null, passiveTestOptions); + /* @__PURE__ */window.removeEventListener('testPassive', null, passiveTestOptions); } - var isIosDevice = typeof window !== 'undefined' && window.navigator && window.navigator.platform && (/iP(ad|hone|od)/.test(window.navigator.platform) || window.navigator.platform === 'MacIntel' && window.navigator.maxTouchPoints > 1); + var isIosDevice = typeof window !== 'undefined' && window.navigator && window.navigator.platform && ( + /* @__PURE__ *//iP(ad|hone|od)/.test(window.navigator.platform) || window.navigator.platform === 'MacIntel' && window.navigator.maxTouchPoints > 1); var locks = []; diff --git a/lib/bodyScrollLock.min.js b/lib/bodyScrollLock.min.js index c2f200f5..e73c2317 100644 --- a/lib/bodyScrollLock.min.js +++ b/lib/bodyScrollLock.min.js @@ -1 +1 @@ -!function(e,o){if("function"==typeof define&&define.amd)define(["exports"],o);else if("undefined"!=typeof exports)o(exports);else{var t={};o(t),e.bodyScrollLock=t}}(this,function(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=!1;if("undefined"!=typeof window){var e={get passive(){t=!0}};window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}function d(o){return s.some(function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(o))})}function l(e){var o=e||window.event;return!!d(o.target)||(1 1)); type HandleScrollEvent = TouchEvent;