From 1f49321d04cc2d3c315fe643801d9f291af2ab10 Mon Sep 17 00:00:00 2001 From: Coopus <120044030+CoopusDev@users.noreply.github.com> Date: Fri, 27 Oct 2023 19:01:01 +0800 Subject: [PATCH] fix mobile rotation issue --- src/extras/Orbit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/extras/Orbit.js b/src/extras/Orbit.js index c0d888e6..ec8c01f7 100644 --- a/src/extras/Orbit.js +++ b/src/extras/Orbit.js @@ -325,8 +325,9 @@ export function Orbit( } }; - const onTouchEnd = () => { + const onTouchEnd = (e) => { if (!this.enabled) return; + if (e.touches.length === 1) rotateStart.set(e.touches[0].pageX, e.touches[0].pageY); state = STATE.NONE; };