From 9b9a62a2b23b3dd86c8b87be3b790f4ae9d0849a Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期三, 24 四月 2024 08:19:28 +0800
Subject: [PATCH] 修改相应尺寸问题
---
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