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

Automatic scrolling while dragging is not intuitive #24770

Open
joshm33333 opened this issue Aug 24, 2020 · 7 comments
Open

Automatic scrolling while dragging is not intuitive #24770

joshm33333 opened this issue Aug 24, 2020 · 7 comments
Labels
[Feature] Drag and Drop Drag and drop functionality when working with blocks Needs Design Feedback Needs general design feedback. Needs Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.

Comments

@joshm33333
Copy link

joshm33333 commented Aug 24, 2020

Just a user here, and a developer of my own projects, with a serious issue with the way dragging blocks is handled.
When you drag an element and move the cursor slightly, the screen moves slowly, move the cursor further, and the screen moves faster... cool right? but wait, what do i do if i want to stop scrolling and drop the block? i have to find the spot on the screen where i started scrolling? thats nuts

i mean, i don't think, i need to provide examples and context. i can't be the only one that feels this way. it's literally useless and almost stops me from dragging altogether

@talldan talldan added [Feature] Drag and Drop Drag and drop functionality when working with blocks Needs Design Feedback Needs general design feedback. labels Aug 25, 2020
@mapk
Copy link
Contributor

mapk commented Aug 25, 2020

I'm running into this problem continually as well. It is frustrating and not easy to drop a block in a specific location without the page continuing to scroll.

Not sure how to solve this technically. Does the screen just stop scrolling when the cursor stops moving? That doesn't seem robust enough.

@mapk mapk added the Needs Dev Ready for, and needs developer efforts label Aug 25, 2020
@mapk
Copy link
Contributor

mapk commented Aug 25, 2020

Somewhat related: #23082

@talldan
Copy link
Contributor

talldan commented Aug 26, 2020

@mapk You have to move the mouse back to approximately where you started dragging from to stop the scrolling.

When #23082 was originally merged, I tried two things to improve it:

Maybe give #23446 a try if it still works.

@mapk
Copy link
Contributor

mapk commented Aug 26, 2020

You have to move the mouse back to approximately where you started dragging from to stop the scrolling.

This is so difficult when where my mouse began the drag isn't aligning with where I'm trying to drop the block. I'll check out 23446.

@joshm33333
Copy link
Author

The fundamental problem is that you can't drop an item while the screen is moving even a tiny bit. It's not something current browsers handle well, and for good reason, nobody is asking for it.

So, therefore, scrolling and dragging must not both be anchored to the same interaction. Like, I think it's fairly obvious. It's like having your gas and your brake on the same pedal.

Either add a second interaction, like using arrow keys to scroll, or have visually indicated areas that enabled scrolling, kind of like the default behavior that we all have muscle memory for, maybe just adding a visual to show that reaching the top or bottom of the screen scrolls would have been plenty.

As I've said with so many things about Gutenberg, please consider making it an option you can both toggle in the menu, and force in functions.php.

@lelas
Copy link

lelas commented Apr 23, 2021

Also a mere user here who's frustrated with blocks inability to drag & drop properly.

I second @joshm33333's idea for a toggle. Would be great with an option to disable scrolling while dragging + a scroll zone in the bottom/top. Working with columns where there is a need to drag content is currently nearly impossible. The slightest drag and the page scrolls and in far too many cases, the content you drag drops in a completely random position. I just spent several hours creating a simple sitemap (also took longer due to

tags getting added around and after block tags seemingly at random, which messes up the layout entirely, but that's a different matter) that should have taken ~15 minutes.

@subnoodle
Copy link

It's still anyoing to drag a block while editor content scrolls.
Would be best solution with @lelas: You cannot drag a block outside editors viewport without scrolling. So, scrolling areas on top and bottom would work out fine, in my opinion.

@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Aug 24, 2023
@talldan talldan changed the title Dragging is not intuitive Automatic scrolling while dragging is not intuitive Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Drag and Drop Drag and drop functionality when working with blocks Needs Design Feedback Needs general design feedback. Needs Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

6 participants