Browse Source

Merge pull request #62 from peili/patch-2

Skip animation steps
j8
yanas 11 years ago
parent
commit
11294a64d7
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      prezi.js

+ 6
- 1
prezi.js View File

324
     $(document).bind('gotoslide.muc', function (event, jid, presUrl, current) {
324
     $(document).bind('gotoslide.muc', function (event, jid, presUrl, current) {
325
         if (preziPlayer) {
325
         if (preziPlayer) {
326
             preziPlayer.flyToStep(current);
326
             preziPlayer.flyToStep(current);
327
+            // 
328
+            var animationStepsArray = preziPlayer.getAnimationCountOnSteps();
329
+            for (var i = 0; i <= animationStepsArray[current]; i++) {
330
+                preziPlayer.flyToNextStep();
331
+            }
327
         }
332
         }
328
     });
333
     });
329
 
334
 
340
     });
345
     });
341
 
346
 
342
     return my;
347
     return my;
343
-}(Prezi || {}));
348
+}(Prezi || {}));

Loading…
Cancel
Save