Skip to content

Conversation

barneyb
Copy link
Contributor

@barneyb barneyb commented May 20, 2016

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

var ALLOW_LOOPING = true;

/**
* Navigates forward n pages
Copy link
Owner

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 :)

Copy link
Contributor Author

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.

@jdan
Copy link
Owner

jdan commented Jun 10, 2016

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 👍

@jdan
Copy link
Owner

jdan commented Jun 11, 2016

Will merge later this afternoon when I'm at my computer, thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants