Skip to content
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

timer reset #4

Closed
MontroseSt opened this issue Oct 23, 2013 · 6 comments
Closed

timer reset #4

MontroseSt opened this issue Oct 23, 2013 · 6 comments
Assignees

Comments

@MontroseSt
Copy link

Hello,
just wanted to ask another question:
Setting the interval to zero
interval:0,
works fine as long as no button was clicked; after that the interval is set back to the standard interval again (4000)

Best,
MSt

@straydogstudio
Copy link
Owner

Thanks. I'll take a look.

@ghost ghost assigned straydogstudio Oct 23, 2013
@straydogstudio
Copy link
Owner

Actually, you never get an interval of zero. That means it scrolls from image to image instantaneously, and the animation must be immediate. If I change the code to allow zero, the images scroll by as fast as the computer can move them, and nothing is visible. (In javascript zero is false, which is why it uses the default 4000 if you set it to 0.) What are you trying to achieve?

If you are wanting a constant scroll the closest you can get is to configure the same value for animation and interval. But it still hesitates between movements.

@MontroseSt
Copy link
Author

I was trying to disable the auto scroll. I was assuming setting the interval to zero would do the trick. How would I disable the auto slide?

@straydogstudio
Copy link
Owner

Pass in scroll: false.

@straydogstudio
Copy link
Owner

Parameters are here and javascript callbacks are here.

Let me know if you need something that is not there. I am open to adding it.

@MontroseSt
Copy link
Author

Thank you! (For some reason I missed the scroll: option )

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

No branches or pull requests

2 participants