Skip to content

Commit

Permalink
Merge pull request #6545 from perminder-17/mousebug
Browse files Browse the repository at this point in the history
Solved the issue with Pan y-axis inverted in frameBuffer.
  • Loading branch information
davepagurek authored Nov 9, 2023
2 parents 64c4714 + e375f7f commit 8e97213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webgl/interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ p5.prototype.orbitControl = function(
deltaPhi = sensitivityY * this.movedY / scaleFactor;
} else if (this.mouseButton === this.RIGHT) {
moveDeltaX = this.movedX;
moveDeltaY = this.movedY;
moveDeltaY = this.movedY * cam.yScale;
}
// start rotate and move when mouse is pressed within the canvas.
if (pointersInCanvas) this._renderer.executeRotateAndMove = true;
Expand Down

0 comments on commit 8e97213

Please sign in to comment.