PrecisePoint point = getEventXY(event);
SpriteList<Sprite> sprites = surface.sprites;
for (int i = sprites.size() - 1; i >= 0; i--) {
Sprite sprite = sprites.get(i);
if (sprite.getBBox().contains(point)) {
ensureHandler().fireEvent(new SpriteOverEvent(sprite, event));
lastSprite = sprite;
return;
}
}
}