Skip to content

Commit

Permalink
doc: Merge/update old Event.pointerX and pointerY docs into source [p…
Browse files Browse the repository at this point in the history
…rototypejs#97 state:fixed_in_branch]
  • Loading branch information
dandean authored and samleb committed Jan 28, 2010
1 parent fcba3f0 commit 7b06652
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/dom/event.js
Expand Up @@ -180,8 +180,9 @@
* Returns the absolute horizontal position of the pointer for a mouse
* event.
*
* Note that this position is absolute on the _page_, not on the
* _viewport_.
* Note that this position is absolute on the `<body>`, not on the
* viewport: scrolling right increases the returned value for events on
* the same viewport location.
**/
function pointerX(event) {
var docElement = document.documentElement,
Expand All @@ -198,8 +199,9 @@
* Returns the absolute vertical position of the pointer for a mouse
* event.
*
* Note that this position is absolute on the _page_, not on the
* _viewport_.
* Note that this position is absolute on the `<body>`, not on the
* viewport: scrolling down increases the returned value for events on
* the same viewport location.
**/
function pointerY(event) {
var docElement = document.documentElement,
Expand Down

0 comments on commit 7b06652

Please sign in to comment.