1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-09-19 17:07:08 +03:00

removed the mostly misused mouse wheel zooming (fixes #1144)

This commit is contained in:
Eugene Pankov 2019-06-30 23:49:51 +02:00
parent 3c27e8105e
commit b198864063

View File

@ -372,14 +372,8 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
} else {
wheelDeltaY = (event as MouseWheelEvent)['deltaY']
}
if (event.ctrlKey || event.metaKey) {
if (wheelDeltaY > 0) {
this.zoomIn()
} else {
this.zoomOut()
}
} else if (event.altKey) {
if (event.altKey) {
event.preventDefault()
const delta = Math.round(wheelDeltaY / 50)
this.sendInput((delta > 0 ? '\u001bOA' : '\u001bOB').repeat(Math.abs(delta)))