restore crop position for a photo who gets edited with CropTool again

This commit is contained in:
Colin McMillen 2023-08-03 23:46:46 -04:00
parent 304097177c
commit 1793fee616

View File

@ -88,6 +88,8 @@ public class CropTool : ITool {
public CropTool(Photo photo) { public CropTool(Photo photo) {
activePhoto = photo; activePhoto = photo;
mouseDragStart = new(photo.CropRectangle.Left, photo.CropRectangle.Top);
mouseDragEnd = new(photo.CropRectangle.Right, photo.CropRectangle.Bottom);
} }
public ToolState HandleInput(UiGeometry geometry, KeyboardState input, MouseState mouse, Game game) { public ToolState HandleInput(UiGeometry geometry, KeyboardState input, MouseState mouse, Game game) {