kopia lustrzana https://github.com/Tldraw/Tldraw
pull/3282/head
rodzic
a9d1c921c7
commit
20cbb6d4bf
|
@ -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': {
|
||||
|
|
Ładowanie…
Reference in New Issue