-
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 performance regression #42363
Comments
Intuition tells me it isn't RichText (but Ella will know better), but Popover would be more likely. Could you regression-test against #40740? |
I just started reporting what I think is the same bug in a separate issue, then found this. I did some investigation. In trying to diagnose this, I can spot two bugs. The first is that the dragged block is initially 'greyed out' when starting a drag, but when you drag past its position it suddenly reappears even though the user hasn't stopped dragging. The Kapture.2022-07-29.at.13.23.21.mp4The second is the big performance regression where, in particular, dragging near the greyed out area of the dragged block causes flickering and lots of lag. This does also happen sometimes when dragging between blocks like the video in the description. On profiling I can see that Kapture.2022-07-29.at.13.40.32.mp4 |
It looks like the main performance issue is happening because of the removal of When dragging over the insertion point indicator, the block drop zone is no longer dragged over, so it triggers the I should be able to put together a relatively straightforward fix. edit - fix in #42806. |
Description
When dropping an image on the editor, there are certain position intervals where the blue drop position indicator is added and removed from the DOM in an infinite loop. See the attached video.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
blinking.drop.mp4
Environment info
Gutenberg: v13.6.0
Theme: Twenty Twenty Two
WordPress version: 6.0-RC4-53438
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: