We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc45d60 commit 9cf3c8cCopy full SHA for 9cf3c8c
src/webgl/interaction.js
@@ -320,10 +320,10 @@ function interaction(p5, fn){
320
this._renderer.executeZoom = false;
321
}
322
if (this.mouseIsPressed) {
323
- if (this.mouseButton === this.LEFT) {
+ if (this.mouseButton.left) {
324
deltaTheta = -sensitivityX * this.movedX / scaleFactor;
325
deltaPhi = sensitivityY * this.movedY / scaleFactor;
326
- } else if (this.mouseButton === this.RIGHT) {
+ } else if (this.mouseButton.right) {
327
moveDeltaX = this.movedX;
328
moveDeltaY = this.movedY * cam.yScale;
329
0 commit comments