Fix grid snapping to use Math.round for consistent nearest-snap behavior #3
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
chocbite/ts-lib-canvas!3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "copilot/fix-snapping-logic-viewport-mover"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replace
value - (value % grid)withMath.round(value / grid) * gridfor position X, position Y, and rotation snapping. This ensures:Agent-Logs-Url: https://github.com/chocbite/ts-lib-canvas/sessions/571f5923-2ede-4684-954b-cb5c7d12280f
Co-authored-by: Chocolateandmilkwin 52867415+Chocolateandmilkwin@users.noreply.github.com