Welcome to the iMore Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 1 of 1
  1. Thread AuthorThread Author   #1  
    dtlinker's Avatar
    iPhone Nanite

    1 Posts

    Default Touch events broken in Safari on iPhone OS 3.0?

    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?


Posting Permissions