Skip to content

Another detail of scrollBehavior wrapped in transition #1373

@nickforddev

Description

@nickforddev

Version

2.5.2

Reproduction link

http://jsfiddle.net/xctnu8r3/2/

Steps to reproduce

Wrapping a router-view in a 2-way transition (like a fade), and scrollBehavior returns { x: 0, y: 0 }.

Click Post 1, scroll down just a little, then click Home.

What is expected?

Scrolling shouldn't take place until after the in-out transition has completed.

What is actually happening?

The router-view scrolls to the top immediately, before the transition begins, resulting in an undesirable content flicker (which looks much worse in a real scenario with actual content).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions