Merge pull request #62 from peili/patch-2

Skip animation steps
This commit is contained in:
yanas 2014-05-13 15:43:55 +02:00
commit 11294a64d7
1 changed files with 6 additions and 1 deletions

View File

@ -324,6 +324,11 @@ var Prezi = (function (my) {
$(document).bind('gotoslide.muc', function (event, jid, presUrl, current) {
if (preziPlayer) {
preziPlayer.flyToStep(current);
//
var animationStepsArray = preziPlayer.getAnimationCountOnSteps();
for (var i = 0; i <= animationStepsArray[current]; i++) {
preziPlayer.flyToNextStep();
}
}
});
@ -340,4 +345,4 @@ var Prezi = (function (my) {
});
return my;
}(Prezi || {}));
}(Prezi || {}));