Skip to content

Slider's behavior on Firefox - bug #39

Answered by armandsalle
ClaraLouiseLBO asked this question in Q&A
Discussion options

You must be logged in to vote

Hello 👋 Thank you for using BS!

This is not a problem with BS, you need to prevent drag on image. You can do it with custom CSS, but with JS it's more efficient.
With this code, it should be working fine.

document.querySelectorAll('img').forEach(img => img.setAttribute('draggable', false))

Have nice day 🙌

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ClaraLouiseLBO
Comment options

Answer selected by armandsalle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants