fix(simulation): reset camera input on layer switch

This commit is contained in:
DCCONSTRUCTIONS
2026-08-26 16:45:05 +03:00
parent 1696b4742b
commit 7fa2bfe52d
2 changed files with 48 additions and 0 deletions
@@ -76,6 +76,9 @@ test("PlayCanvas owns the realtime scene graph without an iframe or React entity
assert.match(runtime, /selected\.horizontal[^\n]+frame\.mouse\[0\] \*= -1/);
assert.match(runtime, /selected\.vertical[^\n]+frame\.mouse\[1\] \*= -1/);
assert.match(runtime, /setCameraInversion/);
assert.match(runtime, /async setViewMode\([\s\S]*this\.resetCameraInteraction\(\);[\s\S]*this\.viewMode = mode/);
assert.match(runtime, /input\._pointerId = -1/);
assert.match(runtime, /state\.mouse\.fill\(0\)/);
assert.match(runtime, /new Asset\([\s\S]*"container"/);
assert.match(runtime, /instantiateRenderEntity/);
assert.match(runtime, /applyWorldTransform/);