fix: static states

This commit is contained in:
TrèsAbhi committed 2024-07-27 14:43:33 -05:00
1 parent 5d1352590a
commit 6e7df526ff
2 files changed
+21 -12

No files matched your search

@@ -163,6 +163,7 @@ export const TankModel = memo(() => {
});
mutateTankopediaTemporary((draft) => {
draft.shot = undefined;
draft.highlightArmor = undefined;
});
window.addEventListener('pointermove', handlePointerMove);
window.addEventListener('pointerup', handlePointerUp);
@@ -239,6 +240,7 @@ export const TankModel = memo(() => {
});
mutateTankopediaTemporary((draft) => {
draft.shot = undefined;
draft.highlightArmor = undefined;
});
position.set(event.clientX, event.clientY);