This project demonstrates how to synchronize a UI follower element with the cursor position using Bevy. The follower tracks the cursor within a container, updating its position in real time.
Default: No tracking is applied yet.
Follower: The demo shows how the cursor and follower positions are synced.
Disclaimer: The cursor is not shown in these screenshots, but it is positioned in the center of the follower element.
Note 1: When moving the cursor quickly, a slight offset may occur between the cursor and the follower. This offset will shrink to zero once the cursor stops moving.
Note 2: Using Pointer<> and RelativeCursorPosition makes this example fully touch compatible.