From 71c230552d4f09acce30fff62dabc406245b75d5 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Thu, 10 Oct 2024 20:46:16 +0800 Subject: [PATCH] move zoom delta to InputAction.ZOOM for FixedOrbit rotation delegate --- .../fixed_orbit_camera_rotation_delegate.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/thermion_dart/lib/src/input/src/implementations/fixed_orbit_camera_rotation_delegate.dart b/thermion_dart/lib/src/input/src/implementations/fixed_orbit_camera_rotation_delegate.dart index 34fe118b..68aec940 100644 --- a/thermion_dart/lib/src/input/src/implementations/fixed_orbit_camera_rotation_delegate.dart +++ b/thermion_dart/lib/src/input/src/implementations/fixed_orbit_camera_rotation_delegate.dart @@ -48,12 +48,13 @@ class FixedOrbitRotateInputHandlerDelegate implements InputHandlerDelegate { _queuedZoomDelta += delta.z; break; case InputAction.PICK: - // Assuming PICK is used for zoom in this context - _queuedZoomDelta += delta.z; break; case InputAction.NONE: // Do nothing break; + case InputAction.ZOOM: + _queuedZoomDelta += delta.z; + break; } }