Skip to content

Moving groups with top left most block selected but not all blocks in group selected results in group resizing #51

Description

@samerickson

Describe the bug

You can now move groups with the blocks within it selected (thank you for fixing that), but there is one edge case where if you have:

  1. A group with more than one block in it
  2. The left and top most block in the group is selected
  3. The group itself is selected
  4. At least one block in the group is not selected

Then rather than the group and the selected blocks moving, the non-selected blocks appear to move and the selected top left most block remains fixed in place. See this GIF:

Image

I reproduced this and made this GIF using the showcase: https://retejs.org/examples/comments/#comments

Thanks for all the TLC given to groups over the past little bit!

Example to reproduce

No response

How to reproduce

  1. A group with more than one block in it
  2. The left and top most block in the group is selected
  3. The group itself is selected
  4. At least one block in the group is not selected

Expected behavior

I would expect all blocks in the comment to move and the internal selected blocks to have no effect on the behavior. Since the comment itself is selected I take that to imply that all of its contents will move with it.

Dependencies

I used the showcase.

Platform

Firefox 152.0.6 and Chrome 150.0.7871.124

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions