-
Notifications
You must be signed in to change notification settings - Fork 82
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
Auto Move when no activity #13
Comments
It's probably not the easiest thing to do right now, but I can add On Thu, Mar 31, 2011 at 2:14 AM, migueltavares <
|
Thanks alot! ;) |
not sure yet, I have to find time... On Thu, Mar 31, 2011 at 9:31 AM, migueltavares <
|
Ok buddy. Thanks in advanced. |
Have you managed to add the extra function buddy? |
Hey, sorry, I haven't. Been too busy at my real job. Feel free to fork the
On Wed, Apr 20, 2011 at 4:02 AM, migueltavares <
|
Rather than adding this functionality into overscroll directly, I decided to remove the legacy 'onDriftEnd' option and just add drift events. In 1.4.3, you'll be able to listen to these events and accomplish what you want to do. Here is how you would do it (haven't tested this, its strictly for example purposes): // keep track of the timeout var timeout, waitBeforeAutoScroll = 1000; $('#someElement').overscroll().bind('overscroll:dragstart', function(){ var elm = $(this); if(timeout) { clearTimeout(timeout); } timeout = setTimeout(function(){ elm.animate({ scrollLeft: 1000}, 1000); // scroll the element to 1000 pixels in 1 second. }, waitBeforeAutoScroll) }); Expect the 1.4.3 drop by tonight. |
Thanks alot buddy, I got it working just like I wanted! ;) |
Hi there, thanks for such a great jQuery code! ;)
I was wondering how could I set a timer, that would activate on no-activity, which would auto slide container?
The text was updated successfully, but these errors were encountered: