Skip to content

"Preserves the scroll on refresh" does not ensure first item visibility #117

Description

@olilam

When the first item in list is partially visible, refreshing the page causes scrolling to the first item entirely visible.
For example, when using https://rawgit.com/angular-ui/ui-scroll/master/demo/persistentScroll/persistentScroll.html, we can make "Item 2" as the first item (not entirely visible):
scroll1
Then refreshing the page, makes "Item 3" the first item:
scroll2
while the expected behavior would be to still see "Item 2" as in:
scroll3

This is even more important when items in list have a "big height".

Any idea on how to solve this?

Thanks in advance,

Olivier

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions