|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
Hi List, I'm oberserving some weired behaviour when using the Mobile Safari touch events. I'm giving an example: I've registered a "touchstart" event handler for the document: document.addEventListener('touchstart', touch_handler, true); In my handler, I'm analyzing the touches list of the event. When only one finger is involved, I can find the touch event in event.touches // --> first finger But when 2 fingers are used sometimes (but sometimes not) the position of the touch events in the touches array switch, meaning sometimes it's event.touches // --> first finger event.touches // --> second finger which is what I would consider correct behaviour, but sometimes the touches array looks like event.touches // --> second finger event.touches // --> first finger I've got no idea what causes the switch. I don't even know if this behaviour is considered to be correct (my personal opinion is that the indexes should be consistent for the life time of the event) and I should deal with it or if it is a bug. Did anybody make similar experiences? Thanks, Towbie _______________________________________________ Do not post admin requests to the list. They will be ignored. Safari-iPhone-Web-Dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.