Permalink
Browse files

Slightly rewrite animation loop starting code

  • Loading branch information...
eelco committed Jul 25, 2016
1 parent c9a02f5 commit a56c5915502dd6f10933ae24c31f70dbebf4e9ff
Showing with 5 additions and 6 deletions.
  1. +5 −6 framer/Framer.coffee
@@ -68,11 +68,10 @@ window.Canvas = new (require "./Canvas").Canvas
Framer.Extras.MobileScrollFix.enable() if Utils.isMobile()
Framer.Extras.TouchEmulator.enable() if not Utils.isTouch()
Framer.Extras.ErrorDisplay.enable() if not Utils.isFramerStudio()
Framer.Extras.Preloader.enable() if not Utils.isFramerStudio()
Framer.Extras.Hints.enable()
Utils.domComplete ->
if not Utils.isFramerStudio()
Framer.Extras.Preloader.enable()
Framer.Preloader.once("end", Framer.Loop.start)
else
Framer.Loop.start()
if Framer.Preloader?
Framer.Preloader.once("end", Framer.Loop.start)
else
Utils.domComplete(Framer.Loop.start)

0 comments on commit a56c591

Please sign in to comment.