I'm trying to disable mousewheel click on link, but I don't know why it doesn't work. Here is my code :
html :
<a class="disable_mousewheel_event" href="https://code.jquery.com/">Click</a>
javascript :
$(function() {
$(".disable_mousewheel_event").on("mouseup", function(event) {
if (event.which == 2) {
event.preventDefault();
}
});
})