Fix annoying bug on macOS devices where context menu hides as soon as it shows up.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD 2024-12-31 09:21:05 -07:00
parent 48a721adda
commit 68bc0383f4

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; };
}