maximegaul / magnetic-scroll

This jQuery plugin offers you the possibility to add magnetic scrolling to your website. You can easily configure the elements on which the plugin act.
17 stars 7 forks source link

How can you use one time only? #2

Open remcoabalain opened 9 years ago

remcoabalain commented 9 years ago

What i'm trying to get is that i want a magnetic scroll once, and after that, that i can scroll normal again. Im developing a website where i have a fullscreen image, then a magnetic scroll. After that i want to scroll normal. Is that possible?

Singularity- commented 7 years ago

Same here ! If you found the answer dont hesitate to tell it ;) !

Thanks,

maximegaul commented 7 years ago

Hello,

I don't have much time to enhance the plugin anymore. Here is something that is a workaround :

These lines will stop the plugin : var mousewheelevt = (/Firefox/i.test(navigator.userAgent)) ? "DOMMouseScroll" : "mousewheel"; //FF doesn't recognize mousewheel as of FF3.x $('body:not(.scrolling)').unbind(mousewheelevt);

If you can trigger this after the first scroll this could work (maybe try to add these line 40 @ magneticScroll-1.0.js)

Keep me up to date !