Add respecting OS setting for natural scroll direction

This commit is contained in:
Jonathan Tran
2024-09-20 20:19:18 -04:00
parent 4da6298e2a
commit 24c2fe996f
6 changed files with 65 additions and 6 deletions

View File

@ -66,7 +66,7 @@ interface MouseGuardZoomHandler {
description: string
dragCallback: (e: MouseEvent) => boolean
scrollCallback: (e: WheelEvent) => boolean
scrollReverseY?: boolean
scrollAllowInvertY?: boolean
lenientDragStartButton?: number
}
@ -157,7 +157,7 @@ export const cameraMouseDragGuards: Record<CameraSystem, MouseGuard> = {
!e.ctrlKey &&
!e.altKey &&
!e.metaKey,
scrollReverseY: true,
scrollAllowInvertY: true,
},
rotate: {
description: `${ALT} + Scroll`,