Skip to content

Commit

Permalink
fix(scrollbar): fix draggable scrollbar
Browse files Browse the repository at this point in the history
fixes #5759
  • Loading branch information
nolimits4web committed Jun 1, 2022
1 parent 7beec06 commit 28cd6c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/scrollbar/scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,11 @@ export default function Scrollbar({ swiper, extendParams, on, emit }) {
}

function enableDraggable() {
if (!swiper.params.scrollbar.el || swiper.scrollbar.el) return;
if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;
events('on');
}
function disableDraggable() {
if (!swiper.params.scrollbar.el || swiper.scrollbar.el) return;
if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;
events('off');
}
function init() {
Expand Down

0 comments on commit 28cd6c2

Please sign in to comment.