3
My doubt is 'simple', but I can find no 'definitive' answer anywhere:
You can specifically capture the mouse scroll click with JS?
There is the function .click()
, that I use a lot, but there is how to know which part of the mouse triggered the event?
My problem is that I am performing a validation to open a link in a new tab, I have already performed the validation of ctrlKey
, and I need to find a solution to validate if the click was left (default) or if it was with scroll, because the same, by default, opens a new tab.
Perfect young man. Thank you very much!
– Diego Fagundes
@Diegofagundes, if this answer has solved your problem, you can mark it as accepted by clicking on the button of check in which is in the upper left corner of the response. :)
– Luiz Felipe