diff --git a/app/com/gitpitch/models/SlideshowModel.java b/app/com/gitpitch/models/SlideshowModel.java index 45df155..5c6ef55 100644 --- a/app/com/gitpitch/models/SlideshowModel.java +++ b/app/com/gitpitch/models/SlideshowModel.java @@ -273,8 +273,12 @@ public class SlideshowModel { /* * Return "autoslide" defined in PITCHME.yaml. */ - public int fetchAutoSlide() { - return (_yOpts != null) ? _yOpts.fetchAutoSlide(params()) : 0; + public int fetchAutoSlide(boolean printing) { + + if(printing) + return 0; // Disable auto-slide when printing. + else + return (_yOpts != null) ? _yOpts.fetchAutoSlide(params()) : 0; } /* diff --git a/app/com/gitpitch/views/Slideshow.scala.html b/app/com/gitpitch/views/Slideshow.scala.html index 7239a69..945814e 100755 --- a/app/com/gitpitch/views/Slideshow.scala.html +++ b/app/com/gitpitch/views/Slideshow.scala.html @@ -74,7 +74,7 @@ - @SlideshowReveal(ssm, deps, offline) + @SlideshowReveal(ssm, deps, printing, offline)