Sfoglia il codice sorgente

Update babylon.arcrotatecamera.input.pointers.ts

Gijs Schenk 8 anni fa
parent
commit
4d1c348f42

+ 1 - 1
src/Cameras/Inputs/babylon.arcrotatecamera.input.pointers.ts

@@ -42,7 +42,7 @@ module BABYLON {
             this._pointerInput = (p, s) => {
                 var evt = <PointerEvent>p.event;
 
-                if (this.buttons.indexOf(evt.button) === -1) {
+                if (p.type !== PointerEventTypes.POINTERMOVE && this.buttons.indexOf(evt.button) === -1) {
                     return;
                 }