Prevent page scrolling when scrolling a DIV while resolving [Violation] warning in console
问题 At first this seems to be duplicate question answered here but there is more that need to be figured out. How can I resolve below given [Violation] warning in google chrome console? [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. Here is the code snippet that works but with the above mentioned [Violation] warning. $.fn.isolatedScroll = function() { this.on('mousewheel