aboutsummaryrefslogtreecommitdiff
path: root/selection.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-07-04 23:05:42 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-07-04 23:05:42 +0200
commit5224fdc80913597287a5f67efec5d0be3254ce59 (patch)
tree7b6c4cac23223926ffb620a2c9a6a43caab6b613 /selection.go
parenta5fef758107888853c14a592696b45768ef56df8 (diff)
Fmt
Diffstat (limited to 'selection.go')
-rw-r--r--selection.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/selection.go b/selection.go
index 91f35fe..d9120d2 100644
--- a/selection.go
+++ b/selection.go
@@ -17,7 +17,7 @@ type Selection struct {
func (e *Entity) SelectMultiple(cursor physics.Point, selection GlobalSelection) {
if e.Selection.IsEnabled {
e.Selection.Value.IsSelected = false
- selectionBounds := physics.Rectangle{Min:selection.Start, Max:cursor}.Canon()
+ selectionBounds := physics.Rectangle{Min: selection.Start, Max: cursor}.Canon()
if selectionBounds.Overlaps(e.Bounds()) {
e.Selection.Value.IsSelected = true
slog.Info("entity selected", slog.String("position", e.Position.Value.String()))