Skip to content

Commit

Permalink
Fixing dropping issue when tile draged from search
Browse files Browse the repository at this point in the history
  • Loading branch information
rstemmer committed Feb 6, 2021
1 parent 3b15466 commit 8cfd772
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions webui/js/tiles/Tile.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ class Tile extends Draggable



onDragStart(event)
{
super.onDragStart(event);

// When dragged from a search preview, hide everything to clear the drop zones
curtain.Hide();
searchinput.HidePreview();
}



MakeElement(artwork, title, topfeatureelements, subtitle, bottomfeatureelements)
{
if(artwork != null)
Expand Down
1 change: 1 addition & 0 deletions webui/js/views/QueueView.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ class QueueDropZone extends DropTarget
let musictype = draggable.dataset.musictype;
let musicid = parseInt(draggable.dataset.musicid);
let droptask = draggable.dataset.droptask;
//window.console && console.log(`Droped ${musictype} with id ${musicid}, ${droptask} at ${this.entryid}`);

switch(droptask)
{
Expand Down

0 comments on commit 8cfd772

Please sign in to comment.