Let canvas boxes go left of the canvas edge
The canvas is centred, so on wide screens there is margin to its left that boxes could not be dragged into: x was clamped to 0 in the drag geometry, the arrow-key nudge and validateBox. Only y stays clamped. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -48,7 +48,6 @@ func validateBox(box *models.Box) error {
|
||||
if err := validateShadow(&box.Shadow); err != nil {
|
||||
return err
|
||||
}
|
||||
box.X = max(box.X, 0)
|
||||
box.Y = max(box.Y, 0)
|
||||
box.W = max(box.W, minBoxSize)
|
||||
box.H = max(box.H, minBoxSize)
|
||||
|
||||
Reference in New Issue
Block a user