@viji-dev/core 0.3.7 → 0.3.9
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/assets/{viji.worker-CariIqqP.js → viji.worker-Dq0mIiTV.js} +4 -3
- package/dist/assets/viji.worker-Dq0mIiTV.js.map +1 -0
- package/dist/{essentia-wasm.web-xDp5ZeCx.js → essentia-wasm.web-Cx2LFPy-.js} +2 -2
- package/dist/{essentia-wasm.web-xDp5ZeCx.js.map → essentia-wasm.web-Cx2LFPy-.js.map} +1 -1
- package/dist/{index-DMMhcGU1.js → index-BVo5-V-R.js} +7 -3
- package/dist/{index-DMMhcGU1.js.map → index-BVo5-V-R.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/assets/viji.worker-CariIqqP.js.map +0 -1
|
@@ -446,8 +446,8 @@ class InteractionSystem {
|
|
|
446
446
|
this.mouseState.rightButton = (data.buttons & 2) !== 0;
|
|
447
447
|
this.mouseState.middleButton = (data.buttons & 4) !== 0;
|
|
448
448
|
this.mouseState.isPressed = data.buttons > 0;
|
|
449
|
-
this.mouseState.deltaX
|
|
450
|
-
this.mouseState.deltaY
|
|
449
|
+
this.mouseState.deltaX = data.deltaX || 0;
|
|
450
|
+
this.mouseState.deltaY = data.deltaY || 0;
|
|
451
451
|
this.mouseState.wheelDelta += data.wheelDeltaY || 0;
|
|
452
452
|
this.mouseState.wheelX += data.wheelDeltaX || 0;
|
|
453
453
|
this.mouseState.wheelY += data.wheelDeltaY || 0;
|
|
@@ -1373,6 +1373,7 @@ class VideoSystem {
|
|
|
1373
1373
|
handleFrameUpdate(data) {
|
|
1374
1374
|
if (!this.offscreenCanvas || !this.ctx) {
|
|
1375
1375
|
console.warn("🔴 Received frame but OffscreenCanvas not setup");
|
|
1376
|
+
data.imageBitmap.close();
|
|
1376
1377
|
return;
|
|
1377
1378
|
}
|
|
1378
1379
|
try {
|
|
@@ -4359,4 +4360,4 @@ async function setSceneCode(sceneCode) {
|
|
|
4359
4360
|
}
|
|
4360
4361
|
}
|
|
4361
4362
|
self.setSceneCode = setSceneCode;
|
|
4362
|
-
//# sourceMappingURL=viji.worker-
|
|
4363
|
+
//# sourceMappingURL=viji.worker-Dq0mIiTV.js.map
|