This commit is contained in:
SteVen Batten 2020-07-24 09:53:09 -07:00
parent 3c96ef7d89
commit b2d1932f68
2 changed files with 6 additions and 8 deletions

View file

@ -7,11 +7,3 @@
min-width: 130px;
}
.context-view-block {
position: fixed;
cursor: initial;
left:0;
top:0;
width: 100%;
height: 100%;
}

View file

@ -66,6 +66,12 @@ export class ContextMenuHandler {
// Render invisible div to block mouse interaction in the rest of the UI
if (this.options.blockMouse) {
this.block = container.appendChild($('.context-view-block'));
this.block.style.position = 'fixed';
this.block.style.cursor = 'initial';
this.block.style.left = '0';
this.block.style.top = '0';
this.block.style.width = '100%';
this.block.style.height = '100%';
domEvent(this.block, EventType.MOUSE_DOWN)((e: MouseEvent) => e.stopPropagation());
}