@lvce-editor/renderer-process 9.1.0 → 9.3.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.
- package/dist/rendererProcessMain.js +3 -10
- package/package.json +1 -1
|
@@ -836,14 +836,7 @@ const invoke$2 = async (ipc, method, ...params) => {
|
|
|
836
836
|
const result = unwrapJsonRpcResult(responseMessage);
|
|
837
837
|
return result;
|
|
838
838
|
};
|
|
839
|
-
|
|
840
|
-
// TODO deprecated old typings,
|
|
841
|
-
// always use automatic transferrable detection
|
|
842
|
-
const invokeAndTransfer$1 = async (ipc, handle, method, ...params) => {
|
|
843
|
-
if (typeof handle === 'string') {
|
|
844
|
-
params = [method, ...params];
|
|
845
|
-
method = handle;
|
|
846
|
-
}
|
|
839
|
+
const invokeAndTransfer$1 = async (ipc, method, ...params) => {
|
|
847
840
|
const {
|
|
848
841
|
message,
|
|
849
842
|
promise
|
|
@@ -6732,7 +6725,7 @@ const StatusBar = 'Status Bar';
|
|
|
6732
6725
|
|
|
6733
6726
|
const getEventListenerOptions = eventName => {
|
|
6734
6727
|
switch (eventName) {
|
|
6735
|
-
case
|
|
6728
|
+
case Wheel:
|
|
6736
6729
|
return {
|
|
6737
6730
|
passive: true
|
|
6738
6731
|
};
|
|
@@ -6768,7 +6761,7 @@ const attachEvent = ($Node, eventMap, key, value) => {
|
|
|
6768
6761
|
console.warn('listener not found', value);
|
|
6769
6762
|
return;
|
|
6770
6763
|
}
|
|
6771
|
-
const options = getEventListenerOptions(
|
|
6764
|
+
const options = getEventListenerOptions(key);
|
|
6772
6765
|
const wrapped = getWrappedListener(listener, eventMap.returnValue);
|
|
6773
6766
|
$Node.addEventListener(key, wrapped, options);
|
|
6774
6767
|
};
|