Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix for Issue #726 #727

Open
wants to merge 1 commit into from

1 participant

Keith Shaw
Keith Shaw

Fixed the autoscroll plugin to use the "steps" configuration setting to scroll by "steps" items in the scrollable element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/scrollable/scrollable.autoscroll.js
6 src/scrollable/scrollable.autoscroll.js
View
@@ -18,7 +18,8 @@
conf: {
autoplay: true,
interval: 3000,
- autopause: true
+ autopause: true,
+ steps: 1
}
};
@@ -47,7 +48,8 @@
// Fixes https://github.com/jquerytools/jquerytools/issues/591
if (timer) clearTimeout(timer); // reset timeout, especially for onSeek event
timer = setTimeout(function(){
- api.next();
+ var conf = api.getConf();
+ api.move(opts.steps, opts.steps*conf.speed);
}, opts.interval);
}
Something went wrong with that request. Please try again.