Add pinch-to-zoom

This commit is contained in:
Jonathan Tran
2024-09-23 12:47:02 -04:00
parent 24c2fe996f
commit a8d12a35cd
2 changed files with 29 additions and 5 deletions

View File

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