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

How to disable on movil? #301

Open
nesbtesh opened this issue Sep 21, 2020 · 2 comments
Open

How to disable on movil? #301

nesbtesh opened this issue Sep 21, 2020 · 2 comments

Comments

@nesbtesh
Copy link

Is there a way to disable on Movil?

@nesbtesh
Copy link
Author

I ended up just adding the fallow code

const StickyWrapper = ({ isSticky, children }) => { if (!isSticky) return children; return ( <Sticky topOffset={0}> {({ style }) => ( <WrapperScroll style={style}>{children}</WrapperScroll> )} </Sticky> ); };

@nesbtesh
Copy link
Author

nesbtesh commented Nov 3, 2020

I am closing this issue Use: #170

The above solution doesn't work well with styled-component

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

1 participant