Skip to content

Commit 9cf3c8c

Browse files
committed
changed orbitControl to use mouseButton object
1 parent dc45d60 commit 9cf3c8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webgl/interaction.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,10 @@ function interaction(p5, fn){
320320
this._renderer.executeZoom = false;
321321
}
322322
if (this.mouseIsPressed) {
323-
if (this.mouseButton === this.LEFT) {
323+
if (this.mouseButton.left) {
324324
deltaTheta = -sensitivityX * this.movedX / scaleFactor;
325325
deltaPhi = sensitivityY * this.movedY / scaleFactor;
326-
} else if (this.mouseButton === this.RIGHT) {
326+
} else if (this.mouseButton.right) {
327327
moveDeltaX = this.movedX;
328328
moveDeltaY = this.movedY * cam.yScale;
329329
}

0 commit comments

Comments
 (0)