Slider's behavior on Firefox - bug #39
-
Hi Armand, thank you for sharing your Butter Slider! I've discovered your work through Alex Tourgis YT channel. I'm using the slider for a client's website, and I've found that it works nicely in Chrome, as exptected, but it seems that the drag & drop isn't working well with Firefox. Instead of sliding smoothly, it first doesn't slide when you click and drag the image, it tries to copy the image, and then the picture you clicked on kinda sticks to the cursor, and then only it starts sliding... Do you think you could help me figure out what's going on? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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.
Have nice day 🙌 |
Beta Was this translation helpful? Give feedback.
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 🙌