Closed Bug 721714 Opened 9 years ago Closed 9 years ago
Touch event screen
X and screen Y properties are undefined
See https://bugzilla.mozilla.org/attachment.cgi?id=592085 , which is the testcase from bug 721712. You need to have the dom.w3c_touch_events.enabled pref set to true in about:config Tapping on the div gives back 'undefined' for the screenX and screenY properties of the various touch events. They should return a value similar as what the mouse events do.
Touch events do not have a screenX/Y attribute. Instead, you have to look at each individual touch in aEvent.touches, aEvent.targetTouches, and aEvent.changedTouches, which each should have a screenX/Y property.
You need to log in before you can comment on or make changes to this bug.