Daofeng Wu

Results 41 comments of Daofeng Wu

![161540213084_ pic](https://user-images.githubusercontent.com/6022672/47293619-9246c880-d645-11e8-9866-bd2c090e4cdd.jpg) He says "I cannot explain it to you, because you don't have an antenna" 🤪.

Related issue: https://github.com/idiotWu/smooth-scrollbar/discussions/362#discussioncomment-854090

You can define a plugin to do this: ```ts import { ScrollbarPlugin } from 'smooth-scrollbar'; class EdgeEasingPlugin extends ScrollbarPlugin { static pluginName = 'edgeEasing'; private _remainMomentum = { x: 0,...

Demo: https://codepen.io/idiotWu/pen/yWERpw

Let's leave this PR open as it's not the expected behavior of a standard scrollbar. I'll consider whether to merge it or not in the next major release.

You mean I need add an instance method that acts like scroll-into-view? In my view this should be done by users: you got the element and measured its position, then...

Anchor is a big problem that I don't know how to solve it properly, as for current offset, you can get it from `instance.offset` property (sorry for the lack of...

@aight8 Hey buddy, I've added `scrollIntoView()` method support in version 5.3.0, check the documents [here](https://github.com/idiotWu/smooth-scrollbar/wiki/Instance-Methods#instancescrollintoview-elem-options-) and give me a feedback :)

Hmm...I checked `Element.scrollIntoViewIfNeeded` [documents](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoViewIfNeeded) again, it appears that I misunderstood the behavior. I can, however, do as much as `dom-scroll-into-view` plugin is. But I'm afraid this scrollbar plugin would be...