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

Can't drag selected layers. #1728

Open
nico-mayora opened this issue Apr 11, 2024 · 1 comment
Open

Can't drag selected layers. #1728

nico-mayora opened this issue Apr 11, 2024 · 1 comment
Labels
Bug Something isn't working Good First Issue Good for newcomers Rust Involves Rust programming for the backend

Comments

@nico-mayora
Copy link
Contributor

nico-mayora commented Apr 11, 2024

I'm not really sure what this happens but to reproduce the issue:

  1. Load up this file on the editor. (Had to change the extension to .json or GitHub wouldn't let me upload it).
  2. Choose the Select Tool, then select all layers (Ctrl+A).
  3. Try to move the selection by dragging, but you'll notice you can only stretch it on the X axis.
  4. Pressing G and moving the mouse still works as expected.
@0HyperCube
Copy link
Member

Thanks for reporting @nico-mayora - this is because the click testing for the transform bounds (transformation_cage.rs:254) is done in the transform space of the first layer instead of the viewport space. This was done to support the rotated bounding box functionality. The tolerance is based only on the Y scale of the shape, so if the shape has a very large X scale and a small y scale then the value will seem wrong.

@0HyperCube 0HyperCube added Bug Something isn't working Good First Issue Good for newcomers Rust Involves Rust programming for the backend labels Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Good First Issue Good for newcomers Rust Involves Rust programming for the backend
Projects
Status: Short-Term
Development

No branches or pull requests

2 participants