mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-02 06:57:04 -06:00
fix: addressing issues raised by coderabbit
This commit is contained in:
@@ -27,9 +27,6 @@ impl Session {
|
||||
return self.drag_move(MoveDrag { ids, start, origs, moved, duplicate, enter_text }, p, mods, tol);
|
||||
}
|
||||
Drag::Resize { id, orig, ids, handle, origs, start } => {
|
||||
if orig.w <= 0.0 || orig.h <= 0.0 {
|
||||
return Ok(Value::Null);
|
||||
}
|
||||
let keep_aspect = mods.shift || self.is_picture(id);
|
||||
let nx = resize_box(&orig, handle, p - start, keep_aspect, mods.alt);
|
||||
let nx = self.snap_resize(nx, handle, &ids, tol);
|
||||
|
||||
Reference in New Issue
Block a user