Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ $.scrollify({
interstitialSection : "",
easing: "easeOutExpo",
scrollSpeed: 1100,
debounce: 400,
offset : 0,
scrollbars: true,
standardScrollElements: "",
Expand Down Expand Up @@ -87,6 +88,9 @@ Define the easing method.
`offset`
A distance in pixels to offset each sections position by.

`debounce`
Debounce time for resizing slides, in ms.

`scrollbars`
A boolean to define whether scroll bars are visible or not.

Expand Down
9 changes: 5 additions & 4 deletions jquery.scrollify.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ if touchScroll is false - update index
interstitialSection: "",
easing: "easeOutExpo",
scrollSpeed: 1100,
debounce: 400,
offset : 0,
scrollbars: true,
target:"html,body",
Expand Down Expand Up @@ -301,7 +302,7 @@ if touchScroll is false - update index
return false;
}
if(delta<0) {
if(index<heights.length-1) {
if(index<heights.length-1) {
if(atBottom()) {
if(isAccelerating(scrollSamples)) {
e.preventDefault();
Expand Down Expand Up @@ -524,7 +525,7 @@ if touchScroll is false - update index
if(withCallback) {
settings.afterResize();
}
},400);
},settings.debounce);
},
handleUpdate:function() {
//callbacks, scroll
Expand Down Expand Up @@ -582,7 +583,7 @@ if touchScroll is false - update index

function sizePanels(keepPosition) {
if(keepPosition) {
top = $window.scrollTop();
top = $window.scrollTop();
}

var selector = settings.section;
Expand All @@ -605,7 +606,7 @@ if touchScroll is false - update index

overflow[i] = false;
} else {

$this.css({"height":$this.height()});

if(settings.overflowScroll) {
Expand Down
2 changes: 1 addition & 1 deletion jquery.scrollify.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.