Skip to content

Commit

Permalink
Change === to <= since === could never work
Browse files Browse the repository at this point in the history
  • Loading branch information
robinpoort committed May 30, 2024
1 parent 7ff498d commit 8bc7ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/swipr.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
}

// Show/hide next button
if ($swiper.scrollWidth - ($swiper.scrollLeft + settings.disabledButtonCorrection) === $swiper.offsetWidth) {
if ($swiper.scrollWidth - ($swiper.scrollLeft + settings.disabledButtonCorrection) <= $swiper.offsetWidth) {
$nextButton.disabled = true;
$nextButton.classList.add(settings.disabledButtonClass);
} else {
Expand Down

0 comments on commit 8bc7ac0

Please sign in to comment.