Skip to content

Commit

Permalink
'releaseOnEdges' option doesn't work nolimits4web#6770
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadShehadeh committed Jul 1, 2023
1 parent ed51dbb commit 6f94bda
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modules/mousewheel/mousewheel.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,11 @@ export default function Mousewheel({ swiper, extendParams, on, emit }) {
if (swiper.params.autoplay && swiper.params.autoplayDisableOnInteraction)
swiper.autoplay.stop();
// Return page scroll on edge positions
if (position === swiper.minTranslate() || position === swiper.maxTranslate()) return true;
if (
params.releaseOnEdges &&
(position === swiper.minTranslate() || position === swiper.maxTranslate())
)
return true;
}
}

Expand Down

0 comments on commit 6f94bda

Please sign in to comment.