sugarlabs / musicblocks

Music Blocks -- A musical microworld
https://musicblocks.sugarlabs.org/
GNU Affero General Public License v3.0
539 stars 727 forks source link

The 'Delete block' option vanishes when dragging a block and hovering over another icon. #3835

Open thefffilo opened 3 months ago

thefffilo commented 3 months ago

Description

To delete a block you can drag and drop it in the box with the bin in the bottom right corner. But if, while dragging the block, you hover another icon, the box with the bin disappears. Anyway if you drop the block in the same place where there was the box, the function works, hence the block gets deleted.

Expected Behavior

I'd expect the box with the bin to remain visible even if I hover other icon while dragging the block.

How to Reproduce

Drag a block and hover another icon while doing it. You'll se the

Console log Errors:

No errors.

Environment:

Checklist


Thank you for contributing to our project! We appreciate your help in improving it.

📚 See contributing instructions.

🙋🏾🙋🏼 Questions: Community Matrix Server.

apsinghdev commented 3 months ago

I guess the code is written in such a way that it thinks that the user doesn't want to delete the block when they hover over other icons at the time of dragging it hence it disappears. however, @walterbender can provide better thoughts on this.

walterbender commented 3 months ago

There is a built-in delay when deleting with the trashcan so users don't accidentally delete blocks.

thefffilo commented 3 months ago

@walterbender I think it's only a visual problem, because if I drop the block where the trashcan it actually works.