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

"Duplicate Selection" moves objects not by a multiple snapping-distance #1245

Open
defini-tiv opened this issue Oct 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@defini-tiv
Copy link

Describe the bug
If you duplicate an object, its duplicate is offset in a way that you can't realign it horizontally or vertically with the original without turning of snapping.

To Reproduce
Steps to reproduce the behavior:

  1. Turn on snapping
  2. Go in Selection mode
  3. Select an object
  4. Click on 'Duplicate Selection'
  5. Try to align the duplicate with the original

Expected behavior
Duplicating an object should offset the duplication a multiple of the snapping-distance

Desktop (please complete the following information):

  • App Version: [v0.11.0]
@Doublonmousse
Copy link
Collaborator

Actually, even changing the duplicate selection offset to be a multiple of the snapping distance, trying to align the duplicate with the original wouldn't be fixed if I understand correctly what you're doing.

As of now the snapping to the grid is with respect to the bounds of the objects, and not made to make relative displacements be multiples of the grid size (could be a second mode for the snapping).

Though in this case using a multiple of the grid size for the offset when duplicating works in both case (duplicated object still snapped for both definitions) so it makes sense to add this in the code

@Doublonmousse Doublonmousse added the enhancement New feature or request label Oct 12, 2024
Repository owner deleted a comment Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
@defini-tiv @Doublonmousse and others