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

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

View File

@ -1,5 +1,10 @@
# Changelog # 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) ## 2025-01-31 - 2.3.1 - fix(scroller)
Removed passive option from scroll event listener Removed passive option from scroll event listener

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@design.estate/dees-domtools', 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.' description: 'A package providing tools to simplify complex CSS structures and web development tasks, featuring TypeScript support and integration with various web technologies.'
} }

View File

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