pull/3282/head
Steve Ruiz 2024-04-18 12:41:25 +01:00
rodzic a9d1c921c7
commit 20cbb6d4bf
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -8929,7 +8929,7 @@ export class Editor extends EventEmitter<TLEventMap> {
// If the camera behavior is "zoom" and the ctrl key is presssed, then pan;
// If the camera behavior is "pan" and the ctrl key is not pressed, then zoom
const behavior =
wheelBehavior === 'zoom' ? (inputs.ctrlKey ? 'pan' : 'zoom') : wheelBehavior
wheelBehavior === 'pan' ? (inputs.ctrlKey ? 'zoom' : 'pan') : wheelBehavior
switch (behavior) {
case 'zoom': {