-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/no slide looping #154
base: master
Are you sure you want to change the base?
Conversation
…low looping around the end of the presentation (in either direction)
* Whether to allow looping from the last back to the first or backwards from | ||
* the first to the last. | ||
*/ | ||
var ALLOW_LOOPING = true; | ||
|
||
/** | ||
* Navigates forward n pages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was going to ask why not just use 1 for FIRST_SLIDE
but, ack!, this method is weird. I like your solution :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, since it uses relative values, "1" means "advance one slide", so had to pick values outside any useful range. I suppose if someone ends up with a 10,000,000 slide presentation there will be problems with this feature, but it seems like that's a fair "bug" to leave latent.
Heya @barneyb, Thanks for this! Sorry for not reviewing sooner. I just made a couple small stylistic comments, but the code looks good to me. Thanks for the README changes too 👍 |
Will merge later this afternoon when I'm at my computer, thanks again! |
if the new
loop
option is set false, don't loop around from last slide to first (or the reverse), and allow jumping directly to first/last slide using Home/End respectively