Merge pull request #776 from hargata/Hargata/745

Fix annoying bug on macOS devices where context menu hides as soon as…
This commit is contained in:
Hargata Softworks 2024-12-31 09:21:30 -07:00 committed by GitHub
commit e13707305b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1056,12 +1056,12 @@ function stopEvent() {
event.stopPropagation();
}
function rangeMouseUp(e) {
if ($(".table-context-menu").length > 0) {
$(".table-context-menu").fadeOut("fast");
}
if (isRightClick(e)) {
return;
}
if ($(".table-context-menu").length > 0) {
$(".table-context-menu").fadeOut("fast");
}
isDragging = false;
document.documentElement.onselectstart = function () { return true; };
}