Compare commits

...

2 Commits

Author SHA1 Message Date
c44e19f3e0 2.3.1 2025-01-31 23:57:07 +01:00
07f09b4457 fix(scroller): Removed passive option from scroll event listener 2025-01-31 23:57:07 +01:00
4 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,10 @@
# Changelog # Changelog
## 2025-01-31 - 2.3.1 - fix(scroller)
Removed passive option from scroll event listener
- The 'passive: true' option was removed from the native scroll event listener attachment.
## 2025-01-31 - 2.3.0 - feat(scroller) ## 2025-01-31 - 2.3.0 - feat(scroller)
Enhance Scroller class with callback execution and adaptive scroll listener Enhance Scroller class with callback execution and adaptive scroll listener

View File

@ -1,6 +1,6 @@
{ {
"name": "@design.estate/dees-domtools", "name": "@design.estate/dees-domtools",
"version": "2.3.0", "version": "2.3.1",
"private": false, "private": false,
"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.",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

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.0', version: '2.3.1',
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

@ -143,7 +143,7 @@ export class Scroller {
* Attaches the native scroll event listener. * Attaches the native scroll event listener.
*/ */
private attachNativeScrollListener(): void { private attachNativeScrollListener(): void {
window.addEventListener('scroll', this.handleNativeScroll, { passive: true }); window.addEventListener('scroll', this.handleNativeScroll);
} }
/** /**