Fix bug with context menu positioning on page load (#1636)

* Fix bug with context menu positioning on page load

* Fix double context menu bug on mobile
This commit is contained in:
Hariz
2025-09-30 18:58:54 -07:00
committed by GitHub
parent 6ee60f9c13
commit 62f5cc54cf
+1
View File
@@ -835,6 +835,7 @@ async function UIDesktop(options) {
if (event.target === el_desktop) {
event.preventDefault();
UIContextMenu({
position: event.type === 'taphold' ? undefined : { left: event.pageX, top: event.pageY },
items: [
// -------------------------------------------
// Sort by