fix: invert right-mouse pan direction and triple sensitivity in InputHandler
This commit is contained in:
parent
3d24bbc61f
commit
8bee9f24a5
@ -114,11 +114,11 @@ export class InputHandler {
|
||||
|
||||
// Handle camera panning
|
||||
if (this.isRightMouseDown) {
|
||||
const dx = (event.clientX - this.lastMouseX) * 0.1;
|
||||
const dy = (event.clientY - this.lastMouseY) * 0.1;
|
||||
|
||||
this.app.renderer.moveCamera(-dx, dy);
|
||||
|
||||
const dx = (this.lastMouseX - event.clientX) * 0.3;
|
||||
const dy = (this.lastMouseY - event.clientY) * 0.3;
|
||||
|
||||
this.app.renderer.moveCamera(dx, dy);
|
||||
|
||||
this.lastMouseX = event.clientX;
|
||||
this.lastMouseY = event.clientY;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user