Made snapping / overlays not render extra times, made snapping distance larger

This commit is contained in:
otdavies
2022-01-05 00:36:33 -08:00
parent 9a0b908ab3
commit e33bbbf802
7 changed files with 10 additions and 23 deletions

View File

@@ -16,7 +16,7 @@ impl Resize {
/// Starts a resize, assigning the snap targets and snapping the starting position.
pub fn start(&mut self, responses: &mut VecDeque<Message>, viewport_bounds: DVec2, document: &DocumentMessageHandler, mouse_position: DVec2) {
let layers = document.all_layers_sorted();
self.snap_handler.start_snap(responses, viewport_bounds, document, layers, &[]);
self.snap_handler.start_snap(responses, viewport_bounds, document, layers);
self.drag_start = self.snap_handler.snap_position(document, mouse_position);
}