Skip to content Skip to sidebar Skip to footer

Click And Drag On Links In Firefox Are Blocking Mouseup Events

I want to achieve an horizontal click and dragg website, it works perfectly in Chrome but not in Firefox. My problem : Click and dragg on links in Firefox is making the stop-icon a

Solution 1:

SOLUTION : To fix the problem you can do

const links = document.querySelectorAll('a');
links.forEach(element => {element.addEventListener('mousedown',function(e) { 
  e.preventDefault();
})
})

Here is the link :https://codepen.io/greg_o/pen/jQrMON

Post a Comment for "Click And Drag On Links In Firefox Are Blocking Mouseup Events"