Merge pull request #19540 from antobinary/backport-19372

fix: quicker zoom by wheel (backport from develop)
This commit is contained in:
Anton Georgiev 2024-01-30 09:49:45 -05:00 committed by GitHub
commit e9e38dec34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,8 +89,8 @@ const useMouseEvents = ({ whiteboardRef, tlEditorRef }, {
const MAX_ZOOM = 4;
const MIN_ZOOM = .2;
const ZOOM_IN_FACTOR = 0.025; // Finer zoom control
const ZOOM_OUT_FACTOR = 0.025;
const ZOOM_IN_FACTOR = 0.100; // Finer zoom control
const ZOOM_OUT_FACTOR = 0.100;
const { x: cx, y: cy, z: cz } = tlEditorRef.current.camera;
@ -160,4 +160,4 @@ const useMouseEvents = ({ whiteboardRef, tlEditorRef }, {
export {
useMouseEvents,
useCursor,
};
};