Skip to content

Commit

Permalink
Update CameraControls.tsx
Browse files Browse the repository at this point in the history
fixed eslint failure modes
  • Loading branch information
mehdikhfifi authored Aug 22, 2024
1 parent 97c383a commit 6b13c62
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/viser/client/src/CameraControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,17 @@ import { useThree } from "@react-three/fiber";
import React, { useContext, useEffect, useRef, useCallback, useState } from "react";
import * as THREE from "three";

interface SynchronizedCameraControlsProps {
useFirstPersonControls: boolean;
}


export function SynchronizedCameraControls() {
const viewer = useContext(ViewerContext)!;
const [isFirstPerson, setIsFirstPerson] = useState(false);


const { camera, gl, scene } = useThree();
const { camera, gl } = useThree();
const controlsRef = useRef(null);
const orbitControlsRef = useRef(null);
var speed = 0.03;
const speed = 0.03;

const sendCameraThrottled = makeThrottledMessageSender(
viewer,
Expand Down

0 comments on commit 6b13c62

Please sign in to comment.