Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utils/useDrag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

const clientRect = useMemo(
() => gl.domElement.getBoundingClientRect(),
[gl.domElement]
[gl.domElement, size]

Check warning on line 49 in src/utils/useDrag.ts

View workflow job for this annotation

GitHub Actions / build

React Hook useMemo has an unnecessary dependency: 'size'. Either exclude it or remove the dependency array
);

return useGesture(
Expand Down