feat: remove old model and reduce click detection sensitivity
This commit is contained in:
BIN
public/art.webp
BIN
public/art.webp
Binary file not shown.
|
Before Width: | Height: | Size: 503 KiB |
Binary file not shown.
Binary file not shown.
BIN
public/room.fbx
BIN
public/room.fbx
Binary file not shown.
@@ -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")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user