@lvce-editor/renderer-process 9.1.0 → 9.2.0
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.
|
@@ -6732,7 +6732,7 @@ const StatusBar = 'Status Bar';
|
|
|
6732
6732
|
|
|
6733
6733
|
const getEventListenerOptions = eventName => {
|
|
6734
6734
|
switch (eventName) {
|
|
6735
|
-
case
|
|
6735
|
+
case Wheel:
|
|
6736
6736
|
return {
|
|
6737
6737
|
passive: true
|
|
6738
6738
|
};
|
|
@@ -6768,7 +6768,7 @@ const attachEvent = ($Node, eventMap, key, value) => {
|
|
|
6768
6768
|
console.warn('listener not found', value);
|
|
6769
6769
|
return;
|
|
6770
6770
|
}
|
|
6771
|
-
const options = getEventListenerOptions(
|
|
6771
|
+
const options = getEventListenerOptions(key);
|
|
6772
6772
|
const wrapped = getWrappedListener(listener, eventMap.returnValue);
|
|
6773
6773
|
$Node.addEventListener(key, wrapped, options);
|
|
6774
6774
|
};
|