mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-25 07:27:04 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user