lukehaas / Scrollify

A jQuery plugin that assists scrolling and snaps to sections.
MIT License
1.8k stars 578 forks source link

Disable mousewheel during scrolling #405

Open Alessiosdm opened 4 years ago

Alessiosdm commented 4 years ago

Hi, Would it be possible to disable the continuous mousewheel during scrolling? Also on the official demo I notice a shaking if you try to move the wheel more than once. (Chrome on Mac and Win) Thank you

Alessiosdm commented 4 years ago

To update. I just added e.preventDefault(); after line 270: wheelHandler: function (e) { // added e.preventDefault(); ... ... Now the shaking is gone ;)

lukehaas commented 4 years ago

@Alessiosdm does adding that not cause problems with scrolling sections that are taller than the viewport?

Alessiosdm commented 4 years ago

Hi Lukehaas, Exactly the problem I just encountered !!! I would also have some fancyboxes with scrolls and these no longer have mousewheels. I just don't know how to fix it right now. Could there be another way?

Thanks Ale

cherjr commented 3 years ago

same problem here! any news, or, maybe, workaround?..

Alessiosdm commented 3 years ago

same problem here! any news, or, maybe, workaround?..

Hi, I unfortunately have not found any solution to the flickering during scrolling... :( Ciao ciao

cherjr commented 3 years ago

Well, it looks like someone does: https://s8.capital/ ...

lukehaas commented 3 years ago

@Alessiosdm I noticed the Scrollify demo site was using an old version of Scrollify, I've now updated it to the latest version. Could you tell me if you are still seeing the same issue there? (make sure to do a hard refresh)

Alessiosdm commented 3 years ago

Great Luke!!!!! Now much better. Do you confirm that Version 1.0.21 is ok? Thanks 1000

lukehaas commented 3 years ago

Thanks, yes, please upgrade to 1.0.21 👍

cherjr commented 3 years ago

Thanks, yes, please upgrade to 1.0.21 👍

unfortunately, that didn't solve the problem for me - I guess, there's still this problem with scrolling sections that are taller than the viewport (?). I can still see it on https://projects.lukehaas.me/scrollify/#options (Chrome/Win10): if you make continuous mouse-wheel action without waiting for the effect to stop - the problem presents itself. Do you see it?... it's very difficult to make a video, it's very fast.

Alessiosdm commented 3 years ago

Sorry, I didn't notice ... I confirm that the flickering occurs when switching from a long section to a full Height one. (Win & Mac)

salinap commented 3 years ago

Same problem

cherjr commented 3 years ago

@lukehaas any chance for us?...

salinap commented 3 years ago

@Alessiosdm another solution https://jsfiddle.net/s0c3rhLk/1/

najeeboffice commented 3 years ago

@Alessiosdm another solution https://jsfiddle.net/s0c3rhLk/1/

not working as expected. it has same issue some times other sections overlap.

najeeboffice commented 3 years ago

Please someone help him fix this flikering issue. I tried many scroll snap plugin and this one works very easily but only issue is scroll flikering.

miqueiasantos commented 3 years ago

I added the e.preventDefault() inside the if (locked) and it worked for me:


if (locked) {
    e.preventDefault();
    return false;
}
imamuddinkhan commented 2 years ago

e.preventDefault();

but on mobile devices this code not working.