Skip to content

Commit

Permalink
feat: disable rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rassl committed Dec 31, 2024
1 parent 45c0767 commit 44800b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Universe/Controls/CameraAnimations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const useCameraAnimations = (
const { disableCameraRotation } = useGraphStore.getState()
const { isUserDragging } = useControlStore.getState()

if (!disableCameraRotation && !isUserDragging) {
if (!disableCameraRotation && !isUserDragging && false) {

Check warning on line 55 in src/components/Universe/Controls/CameraAnimations/index.ts

View workflow job for this annotation

GitHub Actions / eslint-run

Unexpected constant condition

Check warning on line 55 in src/components/Universe/Controls/CameraAnimations/index.ts

View workflow job for this annotation

GitHub Actions / cypress-run (cypress/e2e/addContent/addWebpage.cy.ts)

Unexpected constant condition

Check warning on line 55 in src/components/Universe/Controls/CameraAnimations/index.ts

View workflow job for this annotation

GitHub Actions / cypress-run (cypress/e2e/addContent/addYoutube.cy.ts)

Unexpected constant condition

Check warning on line 55 in src/components/Universe/Controls/CameraAnimations/index.ts

View workflow job for this annotation

GitHub Actions / cypress-run (cypress/e2e/admin/signin.cy.ts)

Unexpected constant condition

Check warning on line 55 in src/components/Universe/Controls/CameraAnimations/index.ts

View workflow job for this annotation

GitHub Actions / cypress-run (cypress/e2e/addContent/addTweet.cy.ts)

Unexpected constant condition

Check warning on line 55 in src/components/Universe/Controls/CameraAnimations/index.ts

View workflow job for this annotation

GitHub Actions / cypress-run (cypress/e2e/trendingTopics/trendingTopics.cy.ts)

Unexpected constant condition

Check warning on line 55 in src/components/Universe/Controls/CameraAnimations/index.ts

View workflow job for this annotation

GitHub Actions / cypress-run (cypress/e2e/seeLatest/latest.cy.ts)

Unexpected constant condition

Check warning on line 55 in src/components/Universe/Controls/CameraAnimations/index.ts

View workflow job for this annotation

GitHub Actions / cypress-run (cypress/e2e/addNode/addNodeType.cy.ts)

Unexpected constant condition
cameraControlsRef.current.azimuthAngle += autoRotateSpeed * delta * MathUtils.DEG2RAD

Check failure on line 56 in src/components/Universe/Controls/CameraAnimations/index.ts

View workflow job for this annotation

GitHub Actions / craco-build-run

'cameraControlsRef.current' is possibly 'null'.

Check failure on line 56 in src/components/Universe/Controls/CameraAnimations/index.ts

View workflow job for this annotation

GitHub Actions / eslint-run

'cameraControlsRef.current' is possibly 'null'.
}

Expand Down
2 changes: 1 addition & 1 deletion src/stores/useGraphStore/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export const useGraphStore = create<GraphStore>()((set, get) => ({
},
setSelectionData: (selectionGraphData) => set({ selectionGraphData }),
setScrollEventsDisabled: (scrollEventsDisabled) => set({ scrollEventsDisabled }),
setDisableCameraRotation: (rotation) => set({ disableCameraRotation: true || rotation }),
setDisableCameraRotation: (rotation) => set({ disableCameraRotation: rotation }),
setIsHovering: (isHovering) => set({ isHovering }),
setGraphRadius: (graphRadius) => set({ graphRadius }),
setSelectionGraphRadius: (selectionGraphRadius) => set({ selectionGraphRadius }),
Expand Down

0 comments on commit 44800b5

Please sign in to comment.