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

Navigating "back" to a page containing masonry goes to the wrong position #49

Open
davestewart opened this issue Feb 3, 2022 · 0 comments

Comments

@davestewart
Copy link

davestewart commented Feb 3, 2022

Hi there,

My site is currently built using a Vue Masonry CSS which has mainly been good, but I am looking for an alternative as I'm coming across a bug I can't seem to get round.

Anyway, generally it performs well, and as you can see below, you can click into grid items, then use the browser's back button to return to the same position on the previous page:

https://davestewart.co.uk/archive/

However, when replacing this library with your own, I scroll down the page, click into an item, then go "back", the page is scrolled significantly far above the item I clicked into.

This is visually confusing and right now would be reason enough to not use your (otherwise fine) library.

Any ideas why it's happening? Easy fix?

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