Skip to content

Firefox auto scrolling to top of page not working when page you are navigating from is longer than the page you are navigating to #2736

@EmielCodes

Description

@EmielCodes

@inertiajs/vue3 Version

2.2.19

Backend stack (optional)

Laravel 11.47.0
PHP 8.3.12

Describe the problem

When using smooth scrolling, the auto scrolling up does not work when navigating from a longer to a shorter page. When smooth scrolling is disabled, it goes to the top.

This issue is only present in Firefox.

I am using firefox developer edition 146.0b9

Steps to reproduce

Create a page that is longer then the other page, and enable smooth scrolling. On the longer page, place a Link at the bottom of the page linking to the shorter page. When clicking this link, you will stay at the bottom of the screen. If you place the same Link on the shorter page, it will navigate to the longer page and scroll up.

I have created a repository where this issue is present:
https://github.com/EmielCodes/firefox-scroll-bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    vue 3Related to the vue 3 adapter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions