Skip to content

Commit

Permalink
Slightly rewrite animation loop starting code
Browse files Browse the repository at this point in the history
  • Loading branch information
eelco committed Jul 25, 2016
1 parent c9a02f5 commit a56c591
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions framer/Framer.coffee
Expand Up @@ -68,11 +68,10 @@ window.Canvas = new (require "./Canvas").Canvas
Framer.Extras.MobileScrollFix.enable() if Utils.isMobile() Framer.Extras.MobileScrollFix.enable() if Utils.isMobile()
Framer.Extras.TouchEmulator.enable() if not Utils.isTouch() Framer.Extras.TouchEmulator.enable() if not Utils.isTouch()
Framer.Extras.ErrorDisplay.enable() if not Utils.isFramerStudio() Framer.Extras.ErrorDisplay.enable() if not Utils.isFramerStudio()
Framer.Extras.Preloader.enable() if not Utils.isFramerStudio()
Framer.Extras.Hints.enable() Framer.Extras.Hints.enable()


Utils.domComplete -> if Framer.Preloader?
if not Utils.isFramerStudio() Framer.Preloader.once("end", Framer.Loop.start)
Framer.Extras.Preloader.enable() else
Framer.Preloader.once("end", Framer.Loop.start) Utils.domComplete(Framer.Loop.start)
else
Framer.Loop.start()

0 comments on commit a56c591

Please sign in to comment.