-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Unreliable drag & drop (blue line) indicator #32880
Comments
#32776 may also have fixed some inconsistencies.
#33024 should fix this.
The mouse has to be within the block list element presently. It'd be nice to improve this. |
Thanks for the fix, tested and working great for vertical stacks, but as commented on #43135, it doesn't appear before the first block for horizontal layouts. |
Thanks for mentioning it. I'll take a look. Also worth mentioning that the Buttons block is really messed up, that still shows vertical drop indicators 😬 |
That was a fairly easy fix - #43944. I'll add some end to end testing for this as well before making it ready for code review. |
Is this still an issue? Seems some problems were fixed? Should it be closed in favour of #44064? |
Yeah, let's close |
Description
I did search but couldn't find other issues specific about this, so decided to open one. Feel free to link other related issues or close this one. (I intentionally make the title of this issue vague so that we can gather as many cases as possible here. We can treat it as an overview issue of anything related to the blue line indicator.)
The drag&drop (blue line) indicator is unreliable and pretty wonky, providing bad user experience. I'm still unsure how it works, sometimes it shows but sometimes it doesn't. I've recorded some basic interactions when dragging a block in the post editor:
Kapture.2021-06-22.at.16.53.34.mp4
Below are some bugs I noticed, in the order shown in the video above:
Currently, the indicator is positioned with both the
prevBlock
and thenextBlock
. It makes sense when the indicator is in between blocks, but not so much in other cases (2),(3),(4). I think we might have to rethink the approach and come up with a way that doesn't depend on existing blocks in those cases. An approach just came to my mind would be to insert invisible placeholder blocks to the block list, so that we can position the indicator between them.Here's another UX issue when trying to drag a block into inner blocks.
Kapture.2021-06-22.at.20.59.04.mp4
Step-by-step reproduction instructions
Expected behaviour
The blue line indicator should show reliably.
Actual behaviour
The blue line indicator doesn't show reliably.
WordPress information
Device information
The text was updated successfully, but these errors were encountered: