Skip to content

this.scrollTo('#id') scrolls more than expected for Windows 11 chrome & for some cases in mac Safari #765

@yog3sha

Description

@yog3sha

I'm using vue-scrollto in my vue 2 project. I've used this.$scrollTo("#id")
On windows 10, scrolling works fine but I'm getting error on Chrome console as below:
this.$scrollTo is not a function
On Windows 11 (in Chrome) and some Mac devices (in Safari), the scrolling is happening for a few extra pixels and the targetted Element goes out of the viewport, about 50vh up.
Could this be browser's behavior or the OS compatibility issue for this package?

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