forked from EXT/VR180-Web-Player
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
This commit is contained in:
@@ -990,7 +990,7 @@ function on2DMouseMove() {
|
||||
}
|
||||
|
||||
function on2DTouchStart() {
|
||||
if (is2DMode) {
|
||||
if (is2DMode && !isDragging) {
|
||||
show2DControlPanel();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user