@@ -290,7 +290,7 @@ const props = withDefaults(defineProps<{
|
||||
showControls: true,
|
||||
showPoi: false,
|
||||
targetFocus: null,
|
||||
touchGestureMode: 'orbit',
|
||||
touchGestureMode: 'pan',
|
||||
targetFocusDistanceFactor: 0.36,
|
||||
routePreview: null,
|
||||
showRoute: false,
|
||||
@@ -497,10 +497,14 @@ const logThreeMapDiagnostic = (
|
||||
const syncControlInteractionOptions = () => {
|
||||
if (!controls) return
|
||||
|
||||
controls.enableRotate = false
|
||||
controls.enablePan = true
|
||||
controls.screenSpacePanning = true
|
||||
controls.panSpeed = 0.85
|
||||
controls.touches.ONE = props.touchGestureMode === 'pan' ? THREE.TOUCH.PAN : THREE.TOUCH.ROTATE
|
||||
controls.mouseButtons.LEFT = THREE.MOUSE.PAN
|
||||
controls.mouseButtons.MIDDLE = THREE.MOUSE.DOLLY
|
||||
controls.mouseButtons.RIGHT = THREE.MOUSE.PAN
|
||||
controls.touches.ONE = THREE.TOUCH.PAN
|
||||
controls.touches.TWO = THREE.TOUCH.DOLLY_PAN
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user