fix(editor): 🚸 Scrollwheel zoom too much
This commit is contained in:
@ -81,7 +81,7 @@ export const Graph = ({
|
|||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
const isPinchingTrackpad = e.ctrlKey
|
const isPinchingTrackpad = e.ctrlKey
|
||||||
user?.graphNavigation === GraphNavigation.MOUSE
|
user?.graphNavigation === GraphNavigation.MOUSE
|
||||||
? zoom(-e.deltaY * 0.01, { x: e.clientX, y: e.clientY })
|
? zoom(-e.deltaY * 0.001, { x: e.clientX, y: e.clientY })
|
||||||
: isPinchingTrackpad
|
: isPinchingTrackpad
|
||||||
? zoom(-e.deltaY * 0.01, { x: e.clientX, y: e.clientY })
|
? zoom(-e.deltaY * 0.01, { x: e.clientX, y: e.clientY })
|
||||||
: setGraphPosition({
|
: setGraphPosition({
|
||||||
|
Reference in New Issue
Block a user