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

Scroll when element behind fixed element #735

Open
WithMistake opened this issue Feb 1, 2023 · 6 comments
Open

Scroll when element behind fixed element #735

WithMistake opened this issue Feb 1, 2023 · 6 comments

Comments

@WithMistake
Copy link

I have a problem with vue-scrollto. I have button and fixed element at the bottom of the page. I need scroll when button behind this fixed element, but libs think we see the button. How I can fix this? Or can we add offsetHeightContainer or something like this?

@rigor789
Copy link
Owner

rigor789 commented Feb 1, 2023

Can you share a simple example of the issue?

@WithMistake
Copy link
Author

Red zone is fixed content. Button behind this content. Jumping is for onDone event. So, scroll doesn't work because thinking element in view.

2023-02-01_15h30_20.mp4

@WithMistake
Copy link
Author

Do you have any updates on this problem?

@rigor789
Copy link
Owner

rigor789 commented Feb 6, 2023

Is the source of your demo available? I think you can achieve what you are looking for with some offset values.

@WithMistake
Copy link
Author

Create demo in sandbox. But this offset values doesn't have in vue-scrollto.

https://codesandbox.io/s/crazy-pike-hocs8p?file=/src/App.vue

@WithMistake
Copy link
Author

Sorry for the insistence. Do you have any updates about this problem?

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