Touch events broken in Safari on iPhone OS 3.0?

dtlinker

New member
Aug 26, 2009
1
0
0
Visit site
I have a webapp that was working perfectly under iPhone OS 2.0 and 2.1, but is broken under 30.

I have buttons that increment or decrement a numeric field as long as the user holds their finger on the button, and stop when user lifts their finger. I attach listeners for touchstart and touchend to achieve this.

Under 3.0, the touchend never gets activated. If the user hold their finger on the button, a magnifying glass pops up, and after that, even if the user lifts their finger, no touchend event occurs.

Looking at the events in Dashcode, after the expected mouseup and touchstart events, my repeating event starts, and then there is a mouseup, touchcancel, touchcomplete sequence that occurs automatically, without user input, followed by the magnifying glass popping up. There are no events after that, even if the user lifts their finger!

How can I prevent this automatic firing of mouseup, touchcancel and touchcomplete?

Thanks