esl
esl copied to clipboard
feat(esl-utils): ScrollIntoView new implementation
In the scope of this PR i added promisified version for scrollIntoView().
Parameters: element - the element which should become visible options (Optional)
For boolean value: If true, the top of the element will be aligned to the top of the visible area of the scrollable ancestor. Corresponds to scrollIntoViewOptions: {block: "start", inline: "nearest"}. This is the default value. If false, the bottom of the element will be aligned to the bottom of the visible area of the scrollable ancestor. Corresponds to scrollIntoViewOptions: {block: "end", inline: "nearest"}.
For Object with the following properties: behavior (Optional) - defines the transition animation. One of auto or smooth. Defaults to auto. block (Optional) - defines vertical alignment. One of start, center, end, or nearest. Defaults to start. inline (Optional) - defines horizontal alignment. One of start, center, end, or nearest. Defaults to nearest.
Needs presentational updates from #1022