Skip to content

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

@davestewart

Description

@davestewart

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions