edemaine / cocreate

Cocreate Shared Whiteboard/Drawing
MIT License
209 stars 27 forks source link

Snapping when moving objects #206

Closed edemaine closed 2 years ago

edemaine commented 2 years ago

Currently the start drag point and the end drag point are individually rounded to the grid. This can result in a nearly 2x "error". What would make more sense is to round the vector between from the start to the end point to the grid. This definitely makes sense for square grid; need to think about triangular grid.

Reported by Josh.