mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-25 13:59:52 +00:00
removed the mostly misused mouse wheel zooming (fixes #1144)
This commit is contained in:
parent
3c27e8105e
commit
b198864063
@ -372,14 +372,8 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
|
|||||||
} else {
|
} else {
|
||||||
wheelDeltaY = (event as MouseWheelEvent)['deltaY']
|
wheelDeltaY = (event as MouseWheelEvent)['deltaY']
|
||||||
}
|
}
|
||||||
if (event.ctrlKey || event.metaKey) {
|
|
||||||
|
|
||||||
if (wheelDeltaY > 0) {
|
if (event.altKey) {
|
||||||
this.zoomIn()
|
|
||||||
} else {
|
|
||||||
this.zoomOut()
|
|
||||||
}
|
|
||||||
} else if (event.altKey) {
|
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
const delta = Math.round(wheelDeltaY / 50)
|
const delta = Math.round(wheelDeltaY / 50)
|
||||||
this.sendInput((delta > 0 ? '\u001bOA' : '\u001bOB').repeat(Math.abs(delta)))
|
this.sendInput((delta > 0 ? '\u001bOA' : '\u001bOB').repeat(Math.abs(delta)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user