Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 of 4 tasks
thefffilo opened this issue Mar 23, 2024 · 5 comments · May be fixed by #4326
Open
3 of 4 tasks

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

thefffilo opened this issue Mar 23, 2024 · 5 comments · May be fixed by #4326

Comments

@thefffilo
Copy link
Contributor

thefffilo commented Mar 23, 2024

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:

  • Operating System: Linux Ubuntu
  • Browser (if applicable): Chrome
  • Version of Software/Project: 3.5.9

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

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

📚 See contributing instructions.

🙋🏾🙋🏼 Questions: Community Matrix Server.

@apsinghdev
Copy link
Contributor

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
Copy link
Member

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

@thefffilo
Copy link
Contributor Author

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

@pikurasa
Copy link
Collaborator

There is also a bug where there blocks are not re-rendered until the user moves the cursor, which is maybe what you are experiencing @thefffilo

@dubeanant
Copy link
Contributor

Hi @thefffilo , is this issue worth resolving? If yes, I’d be happy to work on it. Please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants