android 2.2 browser dont work pageY or PageX in ontouchend event
Posted
by juanca
on Stack Overflow
See other posts from Stack Overflow
or by juanca
Published on 2010-05-28T04:14:50Z
Indexed on
2010/05/28
4:21 UTC
Read the original article
Hit count: 221
JavaScript
|android-2.2
I have a web app that work perfect in android 2.1, when I upgrade to 2.2 the pageX property in ontouchend event, this is my code:
menu1.ontouchend = function(e){ e.preventDefault(); if (e.touches && e.touches.length>0) { // iPhone x2 = e.touches[0].pageX; y2 = e.touches[0].pageY; } else { // all others x2 = e.pageX; y2 = e.pageY; } }
Anybody know what change in the javascript API for touch events from 2.1 to 2.2?????
© Stack Overflow or respective owner