|
|
@ -494,8 +494,10 @@ class AppMediaViewerBase<ContentAdditionType extends string, ButtonsAdditionType |
|
|
|
this.buttons.next.click(); |
|
|
|
this.buttons.next.click(); |
|
|
|
} else if(e.key === 'ArrowLeft') { |
|
|
|
} else if(e.key === 'ArrowLeft') { |
|
|
|
this.buttons.prev.click(); |
|
|
|
this.buttons.prev.click(); |
|
|
|
} else if(this.ctrlKeyDown && (e.key === '-' || e.key === '=')) { |
|
|
|
} else if(e.key === '-' || e.key === '=') { |
|
|
|
|
|
|
|
if(this.ctrlKeyDown) { |
|
|
|
this.changeZoom(e.key === '='); |
|
|
|
this.changeZoom(e.key === '='); |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
good = false; |
|
|
|
good = false; |
|
|
|
} |
|
|
|
} |
|
|
@ -520,8 +522,9 @@ class AppMediaViewerBase<ContentAdditionType extends string, ButtonsAdditionType |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
private onWheel = (e: WheelEvent) => { |
|
|
|
private onWheel = (e: WheelEvent) => { |
|
|
|
if(this.ctrlKeyDown) { |
|
|
|
|
|
|
|
cancelEvent(e); |
|
|
|
cancelEvent(e); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.ctrlKeyDown) { |
|
|
|
const scrollingUp = e.deltaY < 0; |
|
|
|
const scrollingUp = e.deltaY < 0; |
|
|
|
this.changeZoom(!!scrollingUp); |
|
|
|
this.changeZoom(!!scrollingUp); |
|
|
|
} |
|
|
|
} |
|
|
|