I want to excute some function after the user double clicks their mouse wheel. But I can't trigger the event listener when I double click the mouse wheel and code like this doesn't work as I expected:
https://developer.mozilla.org/en-US/docs/Web/API/Element/dblclick_event
const card = document.querySelector('aside');
card.addEventListener('dblclick', function (e) {
card.classList.toggle('large');
});
This event only triggered when the primary bnutton is clicked. I am not sure this event should be triggered only when the left button is clicked, or when any button is clicked. Can anyone explain this to me?