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

Fallback no-scroll style #3

Open
tracend opened this issue Feb 10, 2013 · 0 comments
Open

Fallback no-scroll style #3

tracend opened this issue Feb 10, 2013 · 0 comments

Comments

@tracend
Copy link
Member

tracend commented Feb 10, 2013

This style may be applied when there is no app.state object to set scroll : false

Instead of setting app.scroll = false (which may be disruptive) maybe the body tag justneeds a class applied:

$("body").toggleClass("no-scroll");

The style itself can be as simple as this (just to disable scrolling):

.no-scroll { 
    overflow : "hidden" 
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant