Skip to content

Commit

Permalink
Lazy loading with mousewheel
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Jan 10, 2016
1 parent b7cd340 commit e8b54ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/mousewheel.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ function handleMousewheel(e) {
s.slideReset();
}, 300);
}
else {
if (s.params.lazyLoading && s.lazy) {
s.lazy.load();
}
}

// Return page scroll on edge positions
if (position === 0 || position === s.maxTranslate()) return;
Expand Down

0 comments on commit e8b54ce

Please sign in to comment.