HTML and CSS Reference
In-Depth Information
Mouse Capture
N/A
4
5.5
N/A
N/A
This is obviously annoying behavior if your user is controlling a game with their mouse,
because as soon as the mouse pointer leaves the element, the game piece they're manipulat-
ing will stop responding. Figure I.12 shows the difference when setCapture() is used
(you'll just have to trust that I did the same thing with the mouse pointer—or download the
sample code and try it for yourself).
Search WWH ::




Custom Search