Переглянути джерело

Skip animation steps

Current prezi API does not support flying to certain animation steps.
So in case a prezi would have animation steps, the slide would be empty for the viewer.
With this patch we can at least show entire slide content to viewers if the slide has animations steps.


see also http://prezi.github.io/prezi-player/lib/PreziPlayer/
j8
peili 11 роки тому
джерело
коміт
76c0485ed2
1 змінених файлів з 6 додано та 1 видалено
  1. 6
    1
      prezi.js

+ 6
- 1
prezi.js Переглянути файл

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 || {}));

Завантаження…
Відмінити
Зберегти