How to Prevent Default Inside a Passive Event Listener
When writing a code that binds to an event, you need to make sure that you have passed the target parameter in the addEventListener() function. The target must be a mousewheel or scroll event to trigger the bind() method. If…