Good catch. I've updated the button logic. The click will no longer trigger if the cursor is outside the button boundary.