jellekralt / Responsive-Tabs

Responsive Tabs is a jQuery plugin that provides responsive tab functionality. The tabs transform to an accordion when it reaches a CSS breakpoint. You can use this plugin as a solution for displaying tabs elegantly on desktop, tablet and mobile.
http://jellekralt.github.io/Responsive-Tabs/
MIT License
531 stars 228 forks source link

Scroll to anchor on mobile #106

Open heyepic opened 8 years ago

heyepic commented 8 years ago

I have the tabs working great on desktop - awesome implementation.

However, if you bring this up in mobile iOS/Android, and open a tab, it keeps the window where you tapped, meanwhile that tab expands and you have to scroll up to the content. Same issue someone else submitted but I do have an example page for you to try out on your phone:

http://www.nsc.org/Pages/test-jse-guides.aspx

Any help would be appreciated!

xApep commented 7 years ago

I have the same issue. The scrolltoAccordion isnt working. Those are my settings: collapsible: 'accordion', scrollToAccordion: true, scrollToAccordionOnLoad: false

So when you click on non-active tab you are not scrolled to top of "new" active tab.

Thanks

svdg commented 7 years ago

I have this issue too, a fix is very much appreciated!

svdg commented 7 years ago

Strange: I fixed this in the script: scrollToAccordion: !0, instead of scrollToAccordion: !1,