fix(scroller): Rename method from scrollToElement to toElement for consistency
This commit is contained in:
parent
c44e19f3e0
commit
b0774b0cba
@ -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
|
||||
|
||||
|
@ -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.'
|
||||
}
|
||||
|
@ -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]
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user