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

API to check if the element is fixed or unfixed #211

Open
vinaynb opened this issue Feb 16, 2016 · 1 comment
Open

API to check if the element is fixed or unfixed #211

vinaynb opened this issue Feb 16, 2016 · 1 comment

Comments

@vinaynb
Copy link

vinaynb commented Feb 16, 2016

Hello,

We already have an API to check if scrollToFixed is applied on a particular element which is as below

// returns whether or not the ScrollToFixed plugin has been applied to the element.
var b = $.isScrollToFixed('.header');

I had a requirement wherein i needed to check the current status of the element (i.e is it fixed or not). The source already has internal methods that check these things. Can we expose them ?

@bigspotteddog
Copy link
Owner

I will expose them as soon as I get a chance. Thanks for the suggestion :)

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