compute-scroll-into-view
compute-scroll-into-view copied to clipboard
Virtual element support
Thanks for the great library!
I'd like to integrate this library in Quill but the usage is to scroll a range into view. I think it makes sense to support a virtual element as well in addition to Element. A virtual element is basically an object providing the following methods:
interface VirtualElement {
getBoundingClientRect(): DOMRect;
getParentElement(): HTMLElement;
}
I can create a PR if that something you want to support.