Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skel.vars.stateId returns undefined on W10M #172

Open
morvy opened this issue Aug 5, 2016 · 3 comments
Open

skel.vars.stateId returns undefined on W10M #172

morvy opened this issue Aug 5, 2016 · 3 comments

Comments

@morvy
Copy link

morvy commented Aug 5, 2016

Not sure if I'm doing something wrong, but alert(skel.vars.stateId) returns undefined.

I'm trying to run scrolly with offset only for narrower and mobile breakpoints, but I'm not successful, so maybe skel.on doesn't work because stateId is undefined.

skel.vars.os returns "wp"

@ajlkn
Copy link
Owner

ajlkn commented Oct 23, 2016

Got this live somewhere? I'll take a look.

(PS: sorry for the delay; busy af :)

@morvy
Copy link
Author

morvy commented Oct 23, 2016

I solved it with skel.vars.mobile that works, so nothing live with this issue. Does stateId work for you?

@morvy
Copy link
Author

morvy commented Feb 6, 2017

found out skel.vars.mobile is not reliable too :( Lumia 950XL with W10M (stable) was not showing mobile menu that was visible only when mobile was true. Tried to use skel.breakpoint("small").active but it doesn't work on Vivaldi, so not sure about other browsers, but I needed something 100% reliable, now I'm using window.innerWidth <= 736

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

No branches or pull requests

2 participants