Skip to content

Commit

Permalink
fix(scrollbar): fix warning
Browse files Browse the repository at this point in the history
fixes #7415
  • Loading branch information
nolimits4web committed Mar 28, 2024
1 parent 8c6a3c6 commit e5371f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/scrollbar/scrollbar.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export default function Scrollbar({ swiper, extendParams, on, emit }) {
const { el, dragEl } = scrollbar;

if (!isTouched) return;
if (e.preventDefault) e.preventDefault();
if (e.preventDefault && e.cancelable) e.preventDefault();
else e.returnValue = false;
setDragPosition(e);
wrapperEl.style.transitionDuration = '0ms';
Expand Down

0 comments on commit e5371f7

Please sign in to comment.