-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Drag and drop stuck mid-drag #6145
Comments
Unfortunately I was unable to replicate this. Is there anything else you can think of to provide as information to help us recreate? |
I have again been able to replicate this issue by triggering a Gmail browser notification whilst moving the blocks in Firefox developer edition (Firefox 60). I would assume any notification would cause this issue (https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API) |
I've ran into this same problem multiple times but unfortunately I cannot reliably reproduce it. |
Okay I can reliably reproduce it when I have a Twitter embed (it probably has the same behavior for all embeds).
The page looks like this:
The header block gets "stuck" like this: |
I can reproduce this as well, see #7081. |
I've been testing this. I can only repro sometimes, and it seems to happen more often when I drop content before/after an embed block, or drag/drop the embed block itself. Couldn't repro with notifications (tried with google calendar ones, but I assume any other will do). When I can repro, the Two potential paths to fix this are: 1) use a different "end" event (I'm testing with |
I think I've found the root cause: it's a confirmed chrome bug. The I have some ideas that may fix this besides what I mentioned in the above comment. @braders @kpu23 @iseulde Could I ask you to confirm that this happens to you only in chrome? That would be helpful in fixing the bug. These are the instructions that worked for me to reproduce it:
|
FWIW, Gecko/Firefox doesn't fire |
Hi @nosolosw, I've tested every browser I have. Here are the results. Chrome v68.0.3440.106 The same issue occurs. FireFox v61.0.2 This bug does not happen for me in FireFox but there is something worth reporting. Following the same scenario I outlined above, the Twitter embed block lost its "structure" after moving the 2nd header block. Internet Explorer v11.something |
Potential fix at #9511 |
@kpu23 note that the embed behavior you mention also happens when using the up/down mover so it's unrelated to this and may merit its own separate issue. |
Agreed. It is definitely not a part of this issue/ticket. Shall I create a new ticket for it? (Of course I'd check to make sure a ticket doesn't already exist first). I appreciate all of your work for Gutenberg! |
#9511 fixes this and will be out on the 3.9 version. |
Issue Overview
I attempted to re-order my blocks with the recent drag and drop feature. However, mid-drag the drag was "released". The system still thinks it is mid-drag (body has the is-draggable-components-draggable class), but the dragged component is no longer moving with my cursor. I am still able to interact with the blocks that I was not dragging, and with the adminbar/ navigation etc.
However, moving my mouse and/ or clicking does not move the dragged block back into position - it is stuck over the rest of the content.
Attempting to drag another block seems to "pick-up" both blocks, but the block that got stuck is never insterted back into its correct flow:
(Notice the original list that has got stuck behind the paragraph that I am moving)
Steps to Reproduce (for bugs)
I am not able to reliably reproduce this, but the issue occured at the same time that I received a browser notification (gmail). I suspect that the window focus was briefly transfered to the OS or Browser notification widget.
Firefox Developer Edition, Windows 10.
The text was updated successfully, but these errors were encountered: