feat: remove old model and reduce click detection sensitivity

This commit is contained in:
2025-05-29 17:30:53 +02:00
parent c1d778368c
commit 89b80f49e6
5 changed files with 2 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 503 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -49,7 +49,8 @@ const Room = () => {
const handlePointerUp = (e: ThreeEvent<MouseEvent>) => { const handlePointerUp = (e: ThreeEvent<MouseEvent>) => {
if (!controls.current) return; if (!controls.current) return;
if (pointerDownCameraPos.current.distanceTo(camera.position) >= 0.3) return; if (pointerDownCameraPos.current.distanceTo(camera.position) >= 0.05)
return;
e.stopPropagation(); e.stopPropagation();
if (e.object.name.includes("Window")) { if (e.object.name.includes("Window")) {