Closed Bug 721714 Opened 13 years ago Closed 13 years ago

Touch event screenX and screenY properties are undefined

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox11-)

RESOLVED INVALID
Tracking Status
firefox11 - ---

People

(Reporter: martijn.martijn, Unassigned)

References

()

Details

(Keywords: testcase)

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.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.