Update hooks.js
This commit is contained in:
parent
26f6c01678
commit
d266d48f04
@ -89,8 +89,8 @@ const useMouseEvents = ({ whiteboardRef, tlEditorRef }, {
|
|||||||
|
|
||||||
const MAX_ZOOM = 4;
|
const MAX_ZOOM = 4;
|
||||||
const MIN_ZOOM = .2;
|
const MIN_ZOOM = .2;
|
||||||
const ZOOM_IN_FACTOR = 0.025; // Finer zoom control
|
const ZOOM_IN_FACTOR = 0.100; // Finer zoom control
|
||||||
const ZOOM_OUT_FACTOR = 0.025;
|
const ZOOM_OUT_FACTOR = 0.100;
|
||||||
|
|
||||||
const { x: cx, y: cy, z: cz } = tlEditorRef.current.camera;
|
const { x: cx, y: cy, z: cz } = tlEditorRef.current.camera;
|
||||||
|
|
||||||
@ -160,4 +160,4 @@ const useMouseEvents = ({ whiteboardRef, tlEditorRef }, {
|
|||||||
export {
|
export {
|
||||||
useMouseEvents,
|
useMouseEvents,
|
||||||
useCursor,
|
useCursor,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user