rigor789 / vue-scrollto

Adds a directive that listens for click events and scrolls to elements.
https://vue-scrollto.rigor789.com/
MIT License
2.07k stars 99 forks source link

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

Open yog3sha opened 11 months ago

yog3sha commented 11 months ago

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?