Update crates/engine/src/tools/drag.rs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
DominicTheD3v
2026-10-31 00:21:06 +00:00
committed by GitHub
co-authored by coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
parent 09bbfc7217
commit 77e3a444b8
+1 -1
View File
@@ -55,7 +55,7 @@ impl Session {
hx * sx * o.w / div * if o.flip_h { -1.0 } else { 1.0 },
hy * sy * o.h / div * if o.flip_v { -1.0 } else { 1.0 },
);
resize_box(o, handle, Vec2::new(lp.x, lp.y), keep_aspect, mods.alt)
resize_box(o, handle, Vec2::new(lp.x, lp.y), self.is_picture(*tid), mods.alt)
};
self.set_xfrm(*tid, target_nx)?;
}