Skip to content

Commit

Permalink
Fix for mouse wheel + free mode + loop
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Mar 27, 2018
1 parent 547636c commit 172f4c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/mousewheel/mousewheel.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ const Mousewheel = {
swiper.mousewheel.lastScrollTime = (new window.Date()).getTime();
} else {
// Freemode or scrollContainer:
if (swiper.params.loop) {
swiper.loopFix();
}
let position = swiper.getTranslate() + (delta * params.sensitivity);
const wasBeginning = swiper.isBeginning;
const wasEnd = swiper.isEnd;
Expand Down

0 comments on commit 172f4c4

Please sign in to comment.