From f0957ff7692bbf4f721121ed695df01f4c6d640d Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期四, 25 四月 2024 09:37:11 +0800
Subject: [PATCH] Merge branch 'master' of https://gitee.com/a1536384743/erp_-override

---
 north-glass-erp/node_modules/default-passive-events/src/utils.js |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/node_modules/default-passive-events/src/utils.js b/north-glass-erp/node_modules/default-passive-events/src/utils.js
new file mode 100644
index 0000000..1b98849
--- /dev/null
+++ b/north-glass-erp/node_modules/default-passive-events/src/utils.js
@@ -0,0 +1,16 @@
+export const eventListenerOptionsSupported = () => {
+  let supported = false;
+
+  try {
+    const opts = Object.defineProperty({}, 'passive', {
+      get() {
+        supported = true;
+      }
+    });
+
+    window.addEventListener('test', null, opts);
+    window.removeEventListener('test', null, opts);
+  } catch (e) {}
+
+  return supported;
+}

--
Gitblit v1.8.0