2
0

fix(editor): 🚸 Scrollwheel zoom too much

This commit is contained in:
Baptiste Arnaud
2022-04-08 16:02:22 -05:00
parent b6d40016cd
commit 59ce711303

View File

@ -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({