Skip to content

Commit

Permalink
added panning with middle mouse button
Browse files Browse the repository at this point in the history
  • Loading branch information
kpal81xd committed Apr 15, 2024
1 parent dc39a2c commit 7e8f3a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cameras/multi-camera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class MultiCamera extends BaseCamera {
this._getMidPoint(this._lastPosition);
this._panning = true;
}
if (event.shiftKey) {
if (event.shiftKey || event.button === 1) {
this._lastPosition.set(event.clientX, event.clientY);
this._panning = true;
}
Expand Down

0 comments on commit 7e8f3a4

Please sign in to comment.