Skip to content

Commit

Permalink
fix(core): fix touch move and loop behavior when transition-delay ena…
Browse files Browse the repository at this point in the history
…bled on swiper-wrapper
  • Loading branch information
nolimits4web committed Aug 15, 2023
1 parent 1138c46 commit ac27d02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/transition/setTransition.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export default function setTransition(duration, byController) {

if (!swiper.params.cssMode) {
swiper.wrapperEl.style.transitionDuration = `${duration}ms`;
swiper.wrapperEl.style.transitionDelay = duration === 0 ? `0ms` : '';
}

swiper.emit('setTransition', duration, byController);
Expand Down

0 comments on commit ac27d02

Please sign in to comment.