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

SpacingSizesControl: The first mouse drag does not move the slide from position 1. #51030

Closed
t-hamano opened this issue May 27, 2023 · 3 comments
Labels
[Package] Block editor /packages/block-editor

Comments

@t-hamano
Copy link
Contributor

Description

In the SpacingSizes control, I cannot move it from position 1 by dragging the mouse.

The problem seems to occur on the first operation when switching to custom size input, entering some value, and then returning to preset mode.

197c2968aa2798edf0abdd96f2b8aa45.mp4

Step-by-step reproduction instructions

  • Access the padding/margin control of any of the blocks.
  • Confirm that the slider can be moved correctly.
  • Click the Custom Size button.
  • Enter some value.
  • Press the button to return to the preset mode.
  • Confirm that the slider is positioned at the top.
  • Confirm that the slider cannot be moved correctly with the mouse.
  • Release the mouse cursor and try dragging again for correct operation.

Screenshots, screen recording, code snippet

No response

Environment info

No response

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

@t-hamano t-hamano added the [Package] Block editor /packages/block-editor label May 27, 2023
@glendaviesnz
Copy link
Contributor

I was able to replicate this, but this control is about to get a big overhaul, and I was not able to replicate the issue on that PR, so we may be able to close this once that is merged.

@glendaviesnz
Copy link
Contributor

Closing as I was not able to replicate now that #50660 is merged, but feel free to reopen if you still experience this on trunk.

@t-hamano
Copy link
Contributor Author

Thank you! I too have confirmed that it does not reproduce with the latest trunk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Block editor /packages/block-editor
Projects
None yet
Development

No branches or pull requests

2 participants