PDA

View Full Version : webkitAnimationStart is not unreliable



shinriyo
12 Feb 2012, 6:15 PM
webkitAnimationStart is not unreliable.

because, during animation users touch screen a lot, the animation stops!
I want to know how to protect user touch screen and stopping animation.:((

Device:iPhone4(iOS 4.3)

arnebech
13 Feb 2012, 9:28 AM
Maybe you can listen for touch events and stop them?

shinriyo
13 Feb 2012, 5:12 PM
I added the code and avoid users' touch event


document.ontouchmove = function () { event.preventDefault(); }


It can continue CSS animation when the user touch screen.
However, It also avoid users' scrolling.
I want permit (http://ejje.weblio.jp/content/permit) users' scrolling but avoid stopping CSS animation