diff --git a/changelog.md b/changelog.md index 35cebd5..e42058c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2025-02-01 - 2.3.2 - fix(scroller) +Rename method from scrollToElement to toElement for consistency + +- Updated method name in Scroller class for better coherence with existing naming conventions. + ## 2025-01-31 - 2.3.1 - fix(scroller) Removed passive option from scroll event listener diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 101765d..f248aca 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@design.estate/dees-domtools', - version: '2.3.1', + version: '2.3.2', description: 'A package providing tools to simplify complex CSS structures and web development tasks, featuring TypeScript support and integration with various web technologies.' } diff --git a/ts/domtools.classes.scroller.ts b/ts/domtools.classes.scroller.ts index 29f2df1..420c657 100644 --- a/ts/domtools.classes.scroller.ts +++ b/ts/domtools.classes.scroller.ts @@ -30,7 +30,7 @@ export class Scroller { /** * Scrolls to a given element with options. */ - public async scrollToElement( + public async toElement( elementArg: HTMLElement, optionsArg: Parameters[1] ) {