fix(scroller): Rename method from scrollToElement to toElement for consistency

This commit is contained in:
2025-02-01 00:32:56 +01:00
parent c44e19f3e0
commit b0774b0cba
3 changed files with 7 additions and 2 deletions

View File

@ -30,7 +30,7 @@ export class Scroller {
/**
* Scrolls to a given element with options.
*/
public async scrollToElement(
public async toElement(
elementArg: HTMLElement,
optionsArg: Parameters<typeof this.sweetScroller.toElement>[1]
) {