lukehaas / Scrollify

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

When disabling Scrollify page doesn't scroll at all #303

Open simonszalai opened 6 years ago

simonszalai commented 6 years ago

I am working on a project in Webflow, and for some reasons I need to disable scrollify on mobile. I tried setting touchScroll: false or calling $.scrollify.disable(); with a page width condition, but the page instead of scrolling normally, stopped scrolling at all. Am I getting something wrong? I am using jQuery v3.3.1.

lukehaas commented 6 years ago

That’s odd, I never seen that behaviour. Both the things you’ve tried should work fine.

dynainteractive commented 6 years ago

Had the same issue. I removed "scrollbars: true" from my options and it works.

meta4creations commented 6 years ago

I had the same issue. I removed "scrollbars: false" and it now works.

mmoga-uf commented 5 years ago

I'm also experiencing the same issue. Have y'all just settled on having the scrollbar show in order to work around this @dynainteractive @meta4creations ?

meta4creations commented 5 years ago

@mmoga-uf Sorry, I don't recall what I did or what project I used this on.

Marin-polish commented 4 years ago

Hey guys, it's been a while since you started this topic but I think you got the answer I'm looking for ! Like @simonszalai I'm working on a Webflow project and tried to implement Scrollify. It went well on desktop but I need to disable it on mobile. I'm not a code master, I'm a designer, and I've been scratching my head for hours now..

This is the code I used :

I've tried to add lines with $.scrollify.disable(); mentioning screen width and things like
function disableScrollify(toggle){ if(toggle){ $.scrollify.disable(); } else { $.scrollify.enable(); } }

Like I said I'm pretty shitty at coding so I can't figure it out Hope you can help me on this !

thank you

pwketankulkarni commented 4 years ago

@Marin-polish I have applied this logic but scrolling is not working at all in chrome and firefox, here are the details https://github.com/lukehaas/Scrollify/issues/399

pwketankulkarni commented 4 years ago

@simonszalai can you please share the solution if you found one.