@acanto/core-scroll
Advanced tools
Comparing version 0.0.17 to 0.0.18
{ | ||
"name": "@acanto/core-scroll", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"author": "Acanto <info@acanto.net> (https://acanto.agency/)", | ||
@@ -15,6 +15,6 @@ "license": "ISC", | ||
"dependencies": { | ||
"@acanto/core-detect": "^0.0.7", | ||
"@acanto/core-dom": "^0.0.7", | ||
"@acanto/core-detect": "^0.0.8", | ||
"@acanto/core-dom": "^0.0.8", | ||
"@acanto/core-helpers": "^0.0.12", | ||
"@acanto/core-polyfills": "^0.0.7", | ||
"@acanto/core-polyfills": "^0.0.8", | ||
"@terwanerik/scrolltrigger": "1.0.4", | ||
@@ -26,3 +26,3 @@ "aos": "3.0.0-beta.6", | ||
"sideEffects": false, | ||
"gitHead": "451676235f4dd1ee26570a861233ba2056f3f2d3" | ||
"gitHead": "e6294f51eeffb75c9ba6b868dc2dc9efd42efcf0" | ||
} |
@@ -184,2 +184,3 @@ import "@acanto/core-polyfills/closest"; | ||
let data, current, timeout, settings; | ||
let continueFrame; | ||
let scrollListener; | ||
@@ -259,4 +260,6 @@ let resizeListener; | ||
// Setup debounce callback | ||
timeout = requestAnimationFrame(detect); | ||
if (continueFrame) { | ||
// Setup debounce callback | ||
timeout = requestAnimationFrame(detect); | ||
} | ||
} | ||
@@ -274,7 +277,9 @@ | ||
// Setup debounce callback | ||
timeout = requestAnimationFrame(function () { | ||
sortContents(data); | ||
detect(); | ||
}); | ||
if (continueFrame) { | ||
// Setup debounce callback | ||
timeout = requestAnimationFrame(function () { | ||
sortContents(data); | ||
detect(); | ||
}); | ||
} | ||
} | ||
@@ -302,2 +307,3 @@ | ||
timeout = null; | ||
continueFrame = false; | ||
settings = null; | ||
@@ -313,2 +319,4 @@ } | ||
continueFrame = true; | ||
// Setup variables based on the current DOM | ||
@@ -315,0 +323,0 @@ setup(); |
63610
1910
+ Added@acanto/core-detect@0.0.8(transitive)
+ Added@acanto/core-dom@0.0.8(transitive)
+ Added@acanto/core-polyfills@0.0.8(transitive)
- Removed@acanto/core-detect@0.0.7(transitive)
- Removed@acanto/core-dom@0.0.7(transitive)
- Removed@acanto/core-polyfills@0.0.7(transitive)
Updated@acanto/core-detect@^0.0.8
Updated@acanto/core-dom@^0.0.8