何らかの理由でjQTouchpageAnimationStartを使用すると、2回起動されます。
例:
$(this).bind('pageAnimationStart', function(e,info) {
alert('Animation Started');
});
アラートは2回呼び出されます。何か案は?
私が作成した回避策は機能しているようで、次のとおりです。
var animation_start_count = 0;
$(document).bind('pageAnimationStart', function(e,info) {
animation_start_count ++;
if (animation_start_count == 1) {
alert('Animation Started');
}
else {
animation_start_count = 0;
}
});
私の回避策では、アラートは1回だけ呼び出されます。
jQTオブジェクトを作成しているのは1回だけです。ちょっとした迷惑ですが、他の誰かがこの問題に遭遇したかどうか知りたいと思いました。pageAnimationEndでも同じ結果になります。
ありがとう!