Skip to content

Commit

Permalink
fix: carousel click error, close #5299
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Mar 4, 2022
1 parent 639a685 commit 7999cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/vc-slick/utils/innerSliderUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export const keyHandler = (e, accessibility, rtl) => {
};

export const swipeStart = (e, swipe, draggable) => {
e.target.tagName === 'IMG' && safePreventDefault.preventDefault();
e.target.tagName === 'IMG' && safePreventDefault(e);
if (!swipe || (!draggable && e.type.indexOf('mouse') !== -1)) return '';
return {
dragging: true,
Expand Down

0 comments on commit 7999cde

Please sign in to comment.