mousewheel-stops-working-on-google-chrome

Farzad asked 2 years ago

Mousewheel stops working on google chrome starting yesterday.  

36 Answers
MikeBlue17 answered 2 years ago

For me the answer of user Fergas fixed the problem.
The shorter code (from user I.V. Stalin) also works but makes it choppy when scrolling with mouse. The version of Fergas is perfect! thanks

iclick.fr answered 1 year ago

Just Comment this line on cherry-parralax.php  // wp_enqueue_script( \’mousewheel\’, $this->url(\’js/jquery.mousewheel.min.js\’), array(\’jquery\’), \’3.0.6\’, true ); and it works

Pagory Schaper answered 1 year ago

Thanks @I.V. Stalin
Your fix is working perfectly!

MAVA answered 11 months ago

Gracias funciono perfecto I.V. Stalin 

Martin Camu answered 10 months ago

Thanks  I.V. Stalin

builder answered 10 months ago

how i fixed:
in: wp-content/themes/themexxxx/parallax-slider/js/jquery.simplr.smoothscroll.min.js
I replaced: from line 12 to the end for this:
/* jquery.simplr.smoothscroll version 1.0.2 copyright (c) 2012 https://github.com/simov/simplr-smoothscroll licensed under MIT */
;(function($){‘use strict’;$.srSmoothscroll=function(options){var self=$.extend({step:55,speed:400,ease:’swing’,target:$(‘body’),container:$(window)},options||{});var container=self.container,top=0,step=self.step,viewport=container.height(),wheel=false;var target=(self.target.selector==’body’)?((document.scrollingElement)?document.scrollingElement:document.documentElement):container;if(target!=document.documentElement){self.target.mousewheel(function(event,delta){wheel=true;if(delta<0){top=(top+viewport)>=self.target.outerHeight(true)?top:top+=step}else{top=top<=0?0:top-=step}target.stop().animate({scrollTop:top},self.speed,self.ease,function(){wheel=false});return false})}container.on(‘resize’,function(e){viewport=container.height()}).on(‘scroll’,function(e){if(!wheel){top=container.scrollTop()}})}})(jQuery);
from this guy:
https://github.com/Shagshag/simplr-smoothscroll
 
so my file now looks like this:
https://jsfiddle.net/gyqwo61p/

Your Answer

8 + 13 =