From f1462162f4f23683db0831a9be1aed6e1e43b898 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sun, 23 Mar 2025 18:21:11 -0500 Subject: [PATCH] fix: persistent cam angle --- .../components/TankSandbox/components/Control.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Control.tsx b/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Control.tsx index 0c2844abe..c4bb8d1f7 100644 --- a/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Control.tsx +++ b/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Control.tsx @@ -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);