From 3b9a94a3b9118970f6e49ddcf046845d5e49180a Mon Sep 17 00:00:00 2001 From: Michael Verdi Date: Thu, 31 Jul 2025 22:11:33 -0500 Subject: [PATCH] Fix touch dragging control panel behavior in 2D mode - Modify on2DTouchStart() to check dragging state before showing controls - Prevents controls from appearing during active touch dragging - Makes touch behavior consistent with mouse dragging behavior - Controls hide when dragging starts and show when dragging ends - Resolves issue where touch dragging would show controls while mouse dragging correctly hid them - Ensures seamless user experience across desktop and mobile devices --- vr180-player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vr180-player.js b/vr180-player.js index ecdbd44..d26d6c1 100644 --- a/vr180-player.js +++ b/vr180-player.js @@ -990,7 +990,7 @@ function on2DMouseMove() { } function on2DTouchStart() { - if (is2DMode) { + if (is2DMode && !isDragging) { show2DControlPanel(); } }