PDA

View Full Version : Touch Event's XY properties not available on iOS ?



prebondy
23 Jul 2011, 10:49 PM
Hello,
I just changed the code in touch.js from examples to get the touch event's XY coordinates.
Works fine in Safari, Chrome, Firefox, Android ..
BUT return 0 or undefined on iOS (4.2)
what's wrong?

handleEvent: function(e) {
console.log(e.type+" "+e.event.layerX+" "+e.event.pageX+" "+e.touches[0].layerX);
this.fireEvent('log', e.type, e);
}