Creative idea. But took me a while to understand the mechanic. Also the circle was snappy. When at the boundary of the box and if the cursor is inside the circle but outside the box and the cursor is moving, the circle should still follow the cursor. This can make it more intuitive. That's my suggestion.