瀏覽代碼

Change a couple methods of PointerDragBehavior from private to protected

Palmer-JC 5 年之前
父節點
當前提交
942384bc95
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Behaviors/Meshes/pointerDragBehavior.ts

+ 2 - 2
src/Behaviors/Meshes/pointerDragBehavior.ts

@@ -290,7 +290,7 @@ export class PointerDragBehavior implements Behavior<AbstractMesh> {
         }
         }
     }
     }
 
 
-    private _startDrag(pointerId: number, fromRay?: Ray, startPickedPoint?: Vector3) {
+    protected _startDrag(pointerId: number, fromRay?: Ray, startPickedPoint?: Vector3) {
         if (!this._scene.activeCamera || this.dragging || !this.attachedNode) {
         if (!this._scene.activeCamera || this.dragging || !this.attachedNode) {
             return;
             return;
         }
         }
@@ -330,7 +330,7 @@ export class PointerDragBehavior implements Behavior<AbstractMesh> {
     }
     }
 
 
     private _dragDelta = new Vector3();
     private _dragDelta = new Vector3();
-    private _moveDrag(ray: Ray) {
+    protected _moveDrag(ray: Ray) {
         this._moving = true;
         this._moving = true;
         var pickedPoint = this._pickWithRayOnDragPlane(ray);
         var pickedPoint = this._pickWithRayOnDragPlane(ray);