@acanto/core-scroll
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -85,6 +85,6 @@ // TODO: use ScrollTrigger? | ||
// efficiently update sizes on resize | ||
listenResize(calculate); | ||
const listenerResize = listenResize(calculate); | ||
// bind debounced on scroll | ||
listenScroll(check); | ||
const listenerScroll = listenScroll(check); | ||
@@ -94,2 +94,13 @@ // and do it immediately | ||
check(); | ||
return { | ||
destroy() { | ||
if (listenerResize) listenerResize(); | ||
if (listenerScroll) listenerScroll(); | ||
if (target) { | ||
target.classList.remove(className + suffixOut); | ||
target.classList.remove(className + suffixIn); | ||
} | ||
}, | ||
}; | ||
} |
{ | ||
"name": "@acanto/core-scroll", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"author": "Acanto <info@acanto.net> (https://acanto.agency/)", | ||
@@ -15,6 +15,6 @@ "license": "ISC", | ||
"dependencies": { | ||
"@acanto/core-detect": "^0.0.8", | ||
"@acanto/core-dom": "^0.0.8", | ||
"@acanto/core-detect": "^0.0.9", | ||
"@acanto/core-dom": "^0.0.9", | ||
"@acanto/core-helpers": "^0.0.12", | ||
"@acanto/core-polyfills": "^0.0.8", | ||
"@acanto/core-polyfills": "^0.0.9", | ||
"@terwanerik/scrolltrigger": "1.0.4", | ||
@@ -26,3 +26,3 @@ "aos": "3.0.0-beta.6", | ||
"sideEffects": false, | ||
"gitHead": "1ce8da151d0ae02fced26b99049bfe2c5d624730" | ||
"gitHead": "0d1abd0044d2280a10ebeb961f933cd95db60686" | ||
} |
63521
1906
+ Added@acanto/core-detect@0.0.9(transitive)
+ Added@acanto/core-dom@0.0.9(transitive)
+ Added@acanto/core-polyfills@0.0.9(transitive)
- Removed@acanto/core-detect@0.0.8(transitive)
- Removed@acanto/core-dom@0.0.8(transitive)
- Removed@acanto/core-polyfills@0.0.8(transitive)
Updated@acanto/core-detect@^0.0.9
Updated@acanto/core-dom@^0.0.9