mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-25 03:22:58 +03:00
properly position context menu (fixes #215)
This commit is contained in:
parent
e52fd0a3dd
commit
11e0c36ebc
@ -224,8 +224,8 @@ export class TerminalTabComponent extends BaseTabComponent {
|
||||
if (event.type === 'mousedown') {
|
||||
if (event.which === 3) {
|
||||
this.contextMenu.popup({
|
||||
x: event.pageX,
|
||||
y: event.pageY,
|
||||
x: event.pageX + this.content.nativeElement.getBoundingClientRect().left,
|
||||
y: event.pageY + this.content.nativeElement.getBoundingClientRect().top,
|
||||
async: true,
|
||||
})
|
||||
event.preventDefault()
|
||||
|
Loading…
Reference in New Issue
Block a user