idk some stuff

This commit is contained in:
Alessandro Mauri 2024-12-17 11:26:59 +01:00
parent c1a7b4fcdb
commit c0e9565bf6
12 changed files with 131 additions and 81 deletions

View file

@ -163,7 +163,7 @@ fn Rect Ctx.position_element(&ctx, Elem *parent, Rect rect, bool style = false)
}
// 6. check if the placement is inside the view
if (rect_collision(placement, view)) {
if (placement.collides(view)) {
return Rect{
.x = placement.x - off.x,
.y = placement.y - off.y,