How to drag and drop an image and check for collision

Check with AABB collision detection in the image drag events.
(LVGL objects have x, y, AND x2, y2 fields, so use those instead of calculating (x+width), (y+height))

1 Like