优化
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user