Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

skrollr-menu not working on mobile #63

Closed
benklinger opened this issue Jan 10, 2015 · 1 comment
Closed

skrollr-menu not working on mobile #63

benklinger opened this issue Jan 10, 2015 · 1 comment

Comments

@benklinger
Copy link

I'm using skrollr-menu at http://ayakorem.co.il/carousel/

The scrolling to hash sections works on desktop but not on mobile. It is not clickable at all.
I read the documentation and saw that it is a common problem, but couldn't find out what i'm doing wrong.

Any help would be appreciated.

@Prinzhorn
Copy link
Owner

You're not using skrollr-menu. This script catches the click before it event reaches skrollr-menu http://ayakorem.co.il/carousel/js/grayscale.js

Is uses

$('html, body').stop().animate({
    scrollTop: $($anchor.attr('href')).offset().top
}, 2500, 'easeInOutExpo');

which won't work with skrollr on mobile. You need to use skrollr's animateTo

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants