HTML and CSS Reference
Figure I.12. With the capture events API Wilson continues to follow the pointer when it leaves the element or even
the browser window.
The next listing shows how you could use the event capturing API to work around the issue.
It's a replacement for the follow_mouse() function you implemented in the previous