straydogstudio / film_roll

A lightweight jQuery carousel that centers one item at a time on the page.
MIT License
207 stars 60 forks source link

timer reset #4

Closed MontroseSt closed 10 years ago

MontroseSt commented 10 years ago

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 commented 10 years ago

Thanks. I'll take a look.

straydogstudio commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

Pass in scroll: false.

straydogstudio commented 10 years ago

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 commented 10 years ago

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