Skip to content

Commit

Permalink
fix: stop propagation of "dragstart" for clickable children (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcbyr committed Oct 18, 2022
1 parent 7368044 commit 22830b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/web/drag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ export default function Drag(
function preventClicks() {
const attr = `data-keen-slider-clickable`
elems(`[${attr}]:not([${attr}=false])`, container).map(clickable => {
events.add(clickable, 'dragstart', stop)
events.add(clickable, 'mousedown', stop)
events.add(clickable, 'touchstart', stop)
})
Expand Down

0 comments on commit 22830b5

Please sign in to comment.