Open rohanchambers opened 8 years ago
Hi @rohanchambers, I solved this using lethargy.js and implementing it line 709 by changing the code to this
else if (settings.scrollMode === 'headerScroll') { $(document).bind('mousewheel DOMMouseScroll wheel MozMousePixelScroll', function(e){ e.preventDefault() e.stopPropagation(); if(lethargy.check(e) !== false) { headerScroll(e); } }); }
of course you'll have to setup a var lethargy = new Lethargy();
somewhere ;)
Hope this helps!
Hi @marsouin. It seems like your code you pasted gives an error.
On my end I had put the new Lethargy in the alton.js file... But then again I must point out I had issues with the e.preventDefault() e.stopPropagation(); so I ended up using another library for my project.
There seems to be a little issue when using the track pad on a Macbook pro, OS El Capitan and most likely other computers. When going to the next slide using the trackpad there is a flicker / fast up and down affect for the 'Hero scroll' functionality. It seems it's way too sensitive with the trackpad. Using the scroll on a mouse works fine. This issue is replicated on your 'Hero scroll' example as well but not on the standard or book examples. Other from that it works as intended but unfortunately I can't use it with this issue. Would be great to get a fix. Great plugin though. Thanks.