esl icon indicating copy to clipboard operation
esl copied to clipboard

feat(esl-utils): ScrollIntoView new implementation

Open fshovchko opened this issue 2 years ago • 1 comments

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.

fshovchko avatar May 25 '22 08:05 fshovchko

Needs presentational updates from #1022

ala-n avatar Jun 09 '22 00:06 ala-n