Currently working with Angular 9 and encountering an issue with the (auxClick)
event triggering on a mousewheel click
. The problem arises when attempting to use this event while there is a scroll present on the page, as it does not trigger correctly due to the automatic scrolling behavior associated with mousewheel clicks.
I am specifically looking to disable this functionality, which can be seen in action here: https://i.sstatic.net/c5hB7.png
Has anyone found a way to disable this behavior using JavaScript or TypeScript within an Angular environment?
Thank you for any assistance provided.
(Please note that utilizing preventDefault()
has not proven effective, as the event itself fails to trigger, thus bypassing the need for any callback functions.)