mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
fix: persistent cam angle
This commit is contained in:
1 parent
da4c2ece32
commit
f1462162f4
1 file changed
-9
-9
@@ -316,14 +316,6 @@ export function Controls({ naked }: ControlsProps) {
|
||||
|
||||
updateCamera();
|
||||
|
||||
const unsubscribeDisplay = tankopediaEphemeralStore.subscribe(
|
||||
(state) => state.display,
|
||||
() => {
|
||||
handleDisturbance();
|
||||
updateCamera();
|
||||
},
|
||||
);
|
||||
|
||||
const unsubscribeShootingRangeZoom = tankopediaEphemeralStore.subscribe(
|
||||
(state) => state.shootingRangeZoom,
|
||||
updateCamera,
|
||||
@@ -332,7 +324,6 @@ export function Controls({ naked }: ControlsProps) {
|
||||
return () => {
|
||||
canvas.removeEventListener('pointerdown', handleDisturbance);
|
||||
// poseEvent.off(handleDisturbance);
|
||||
unsubscribeDisplay();
|
||||
unsubscribeShootingRangeZoom();
|
||||
// window.removeEventListener('keydown', handleKeyDown);
|
||||
// canvas.removeEventListener('wheel', handleWheel);
|
||||
|
||||
Reference in new issue
Block a user