PDA

View Full Version : skip scenes on Ipad



MZKD
25 Jul 2012, 6:54 AM
Hi,
I made an animation with sencha Animator, which works perfectly on Safari Desktop but skips scenes and interaction on Ipad.

Is there any issue with 1.3 version?

Here is the link to see the animation : http://mobile.mezklador.com/5infos.html


(http://mobile.mezklador.com/5infos.html)

arnebech
26 Jul 2012, 11:10 AM
iOS devices will fire the click event as well as touchStart events. So when you are first touching the screen the touchStart event will fire (and move to the next scene), and when you stop touching the screen the click event will fire (and move to the next scene again).

neethu
29 Jul 2012, 9:14 PM
I'm also facing the same issue. How to rectify this???

arnebech
30 Jul 2012, 8:38 AM
You could remove the touchStart or click handler. If you want to keep both, but still only use on of them you'll have to use custom js and add some logic. What you could do is to set a flag in the touchstart event and use that to disregard the click event.

e.g. touchstart action


this.usesTouchEvents = true;
controller.goToNextScene(); //or whatever action you need


e.g. click action


if (this.usesTouchEvents) {
return
}
controller.goToNextScene(); //or whatever action you need