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

Small click target when dragging/moving a straight line or small objects #2141

Open
tcpie opened this issue Dec 16, 2024 · 2 comments
Open
Labels
Feature New feature or request Good First Issue Good for newcomers Paper Cut A small UX annoyance we should strive to improve

Comments

@tcpie
Copy link

tcpie commented Dec 16, 2024

Make a straight line with e.g. the pen tool. Using the select tool, try to move the line. Notice how it is not possible -- either the line is rotated, or the point of reference for rotation is moved -- the line cannot be dragged. Moving with the "G" button (grab) works, but that mode does not seem to support snapping.

A (similar?) issue occurs for 2D objects when they are (too) small: they cannot be dragged anymore, only resized or rotated.

@0HyperCube
Copy link
Member

This is because we

  • use the geometric bounds rather than the visual bounds
  • don't have any tolerance around the edge of the shape (e.g. Inkscape has about 5px to drag the currently selected shape).

Feel free to implement your preferred solution @tcpie. You will likely want to look in the select_tool.rs in the SelectToolFsmState::Ready { .. }, SelectToolMessage::DragStart.

@Keavon
Copy link
Member

Keavon commented Dec 16, 2024

I will mention that it is possible to drag the shape directly, however it requires great precision with your mouse placement. As Hypercube mentions, it would be nice to have greater tolerance in such cases. Thanks for the report!

@Keavon Keavon added Feature New feature or request Good First Issue Good for newcomers Rust Paper Cut A small UX annoyance we should strive to improve labels Dec 16, 2024
@Keavon Keavon changed the title Cannot drag/move straight line, small objects Small click target when dragging/moving a straight line or small objects Dec 16, 2024
@Keavon Keavon removed the Rust label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request Good First Issue Good for newcomers Paper Cut A small UX annoyance we should strive to improve
Projects
Status: Short-Term
Development

No branches or pull requests

3 participants