From 707682351bb1b306cf6f8740b082e91c75428570 Mon Sep 17 00:00:00 2001 From: Artsiom Trubchyk Date: Thu, 31 Oct 2024 12:24:13 +0300 Subject: [PATCH] Update orbit camera to avoid delta spikes (#57) --- examples/render/orbit_camera/orbit_camera.script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/render/orbit_camera/orbit_camera.script b/examples/render/orbit_camera/orbit_camera.script index 7e53fe6..fdc4d0c 100644 --- a/examples/render/orbit_camera/orbit_camera.script +++ b/examples/render/orbit_camera/orbit_camera.script @@ -40,7 +40,7 @@ function update(self, dt) end function on_input(self, action_id, action) - if action_id == hash("touch") then + if action_id == hash("touch") and not action.pressed then self.yaw = self.yaw - action.dx * self.rotation_speed self.pitch = self.pitch + action.dy * self.rotation_speed elseif action_id == hash("wheel_up") then