# Keep circles near an edge when they are dragged · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/9e8761473c0f1e6313a532287fca6135514ab629)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: 9e8761473c0f1e6313a532287fca6135514ab629

Requested commit: 9e8761473c0f1e6313a532287fca6135514ab629

Commit: 9e8761473c0f1e6313a532287fca6135514ab629

Tree: 96e1a87a6f71588a7ce810a211b4ec42f5dd258f

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Keep circles near an edge when they are dragged

A circle's drop check adds the anchor of its box, in drawing units, to
its saved position, in world units, and removes the circle when the sum
is off the map. With the box at 110 m that sum lands 130 units past the
circle's real centre, so a circle near the top or left of the map
vanished on a short drag. The anchor is now converted to world units
first.

Abilities, agents, images and rectangles make the same unit mix in their
checks; their anchors are small enough that it has not shown, and they
are left for their own change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [1a1214758f0899e1977846decca44028a5c0c933](https://git.cafe/dara/icarus/commit/1a1214758f0899e1977846decca44028a5c0c933?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/9e8761473c0f1e6313a532287fca6135514ab629?format=markdown)
