vue-scrollto icon indicating copy to clipboard operation
vue-scrollto copied to clipboard

Scroll when element behind fixed element

Open WithMistake opened this issue 2 years ago • 6 comments
trafficstars

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?

WithMistake avatar Feb 01 '23 09:02 WithMistake

Can you share a simple example of the issue?

rigor789 avatar Feb 01 '23 11:02 rigor789

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

https://user-images.githubusercontent.com/12686147/216056837-2df571d2-d0b4-43d3-9c8e-36535dd1a87a.mp4

WithMistake avatar Feb 01 '23 13:02 WithMistake

Do you have any updates on this problem?

WithMistake avatar Feb 06 '23 09:02 WithMistake

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

rigor789 avatar Feb 06 '23 11:02 rigor789

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 avatar Feb 06 '23 13:02 WithMistake

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

WithMistake avatar Feb 13 '23 07:02 WithMistake