@motionone/svelte
Advanced tools
Comparing version 10.11.1 to 10.11.2
@@ -1195,15 +1195,2 @@ function noop$1() { } | ||
let supportsDocumentRoot; | ||
function getDefaultRoot() { | ||
if (supportsDocumentRoot === undefined) { | ||
try { | ||
new IntersectionObserver(noop, { root: document }); | ||
supportsDocumentRoot = true; | ||
} | ||
catch (e) { | ||
supportsDocumentRoot = false; | ||
} | ||
} | ||
return supportsDocumentRoot ? document : undefined; | ||
} | ||
const thresholds = { | ||
@@ -1250,3 +1237,3 @@ any: 0, | ||
const observer = new IntersectionObserver(onIntersectionChange, { | ||
root: root || getDefaultRoot(), | ||
root, | ||
rootMargin, | ||
@@ -1253,0 +1240,0 @@ threshold: typeof amount === "number" ? amount : thresholds[amount], |
{ | ||
"name": "@motionone/svelte", | ||
"version": "10.11.1", | ||
"version": "10.11.2", | ||
"description": "A tiny, performant animation library for Svelte", | ||
@@ -17,3 +17,3 @@ "author": "Matt Perry", | ||
"dependencies": { | ||
"@motionone/dom": "^10.11.1", | ||
"@motionone/dom": "^10.11.2", | ||
"tslib": "^2.3.1" | ||
@@ -34,3 +34,3 @@ }, | ||
}, | ||
"gitHead": "25a8e264f860ca7b52f857fa48d1242542699542" | ||
"gitHead": "1dba049a7571f579e2d1221d8c1386350c29496a" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
253784
1698
Updated@motionone/dom@^10.11.2