This commit is contained in:
2026-05-27 10:31:17 +08:00
parent dbde91bbe0
commit a8ae4ffc57
3 changed files with 106 additions and 175 deletions

View File

@ -88,6 +88,12 @@ class AppRay extends Monobehiver {
this.newPoint.set(pointerEvent.clientX, 0, pointerEvent.clientY);
const distance = Vector3.Distance(this.oldPoint, this.newPoint);
// 如果是长按后松手,隐藏分割区域
if (this.isLongPress) {
console.log('[长按] 松手,隐藏分割区域');
this.mainApp.appDropZone.hide();
}
// 只有在没有移动且不是长按的情况下才处理单击
if (distance < 5 && !this.isLongPress) {
this.handleSingleClick(pointerEvent, pickInfo);