|
@@ -164,6 +164,7 @@ export default class App {
|
|
|
|
|
|
switch (pointerInfo.type) {
|
|
|
case BABYLON.PointerEventTypes.POINTERDOWN:
|
|
|
+ // this.mouseMoving = false
|
|
|
this.cameraController.startMouseRotate(pointerInfo)
|
|
|
break;
|
|
|
|
|
@@ -172,8 +173,10 @@ export default class App {
|
|
|
break;
|
|
|
|
|
|
case BABYLON.PointerEventTypes.POINTERMOVE:
|
|
|
- if(this.cameraController.lastFramePoint)
|
|
|
+ if(this.cameraController.lastFramePoint) {
|
|
|
+ // this.mouseMoving = true
|
|
|
this.cameraController.mouseRotating(pointerInfo)
|
|
|
+ }
|
|
|
break;
|
|
|
|
|
|
case BABYLON.PointerEventTypes.POINTERWHEEL:
|
|
@@ -183,6 +186,7 @@ export default class App {
|
|
|
break;
|
|
|
|
|
|
case BABYLON.PointerEventTypes.POINTERTAP:
|
|
|
+ // !this.mouseMoving &&
|
|
|
if(pointerInfo.pickInfo.hit && this.house.indexOf(pointerInfo.pickInfo.pickedMesh)) {
|
|
|
this.charactorManager.clickHouse()
|
|
|
}
|