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