From 399a48a386dbc7c21a8109e050eabeb9ce0a8afe Mon Sep 17 00:00:00 2001 From: IsraelGPT Date: Mon, 16 Feb 2026 00:55:19 +0000 Subject: [PATCH] unblocking --- js/events.js | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/js/events.js b/js/events.js index 49fe5db..e261e28 100644 --- a/js/events.js +++ b/js/events.js @@ -1610,6 +1610,8 @@ export function initializeTrackInteractions(player, api, mainContent, contextMen mainContent.addEventListener('contextmenu', async (e) => { const trackItem = e.target.closest('.track-item, .queue-track-item'); + const card = e.target.closest('.card'); + if (trackItem) { e.preventDefault(); if (trackItem.classList.contains('queue-track-item')) { @@ -1632,29 +1634,6 @@ export function initializeTrackInteractions(player, api, mainContent, contextMen } }); - contextMenu._contextTrack = contextTrack; - contextMenu._contextType = 'track'; - await updateContextMenuLikeState(contextMenu, contextTrack); - positionMenu(contextMenu, e.clientX, e.clientY); - } - } - }); - - mainContent.addEventListener('contextmenu', async (e) => { - const trackItem = e.target.closest('.track-item, .queue-track-item'); - const card = e.target.closest('.card'); - - if (trackItem) { - e.preventDefault(); - if (trackItem.classList.contains('queue-track-item')) { - const queueIndex = parseInt(trackItem.dataset.queueIndex); - contextTrack = player.getCurrentQueue()[queueIndex]; - } else { - contextTrack = trackDataStore.get(trackItem); - } - - if (contextTrack) { - if (contextTrack.isLocal) return; contextMenu._contextTrack = contextTrack; contextMenu._contextType = 'track'; await updateContextMenuLikeState(contextMenu, contextTrack);