Explorar o código

Fix double tap in gui 3d

sebavan %!s(int64=5) %!d(string=hai) anos
pai
achega
47400a54c5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/src/3D/controls/control3D.ts

+ 1 - 1
gui/src/3D/controls/control3D.ts

@@ -414,7 +414,7 @@ export class Control3D implements IDisposable, IBehaviorAware<Control3D> {
             return true;
         }
 
-        if (type === PointerEventTypes.POINTERUP) {
+        if (type === PointerEventTypes.POINTERUP || type === PointerEventTypes.POINTERDOUBLETAP) {
             if (this._host._lastControlDown[pointerId]) {
                 this._host._lastControlDown[pointerId]._onPointerUp(this, pickedPoint, pointerId, buttonIndex, true);
             }