HTML and CSS Reference
In-Depth Information
Listing I.21. Draw Wilson
Now that you have a basic example application in place, let's look at some APIs!
I.3.2. The Mouse Event Capture API: continuing movement beyond the bounds of an
The first API you're going to look at is Mouse Event Capture, comprising the set-Cap-
ture() and releaseCapture() methods. The problem this API is trying to solve is
that mouse events immediately stop the moment the mouse pointer moves outside of the
element where they're being captured. The problem is illustrated in figure I.11 .
Search WWH ::

Custom Search