interpret undefined definition for shouldUseIntersectionObserver as true

This commit is contained in:
Hernan Torrisi
2024-05-27 08:57:28 -07:00
committed by hernan
parent d58963e29d
commit 4678ea9ecf

View File

@@ -188,7 +188,7 @@ export default function useRive(
timeoutId = setTimeout(retestIntersection, 10);
}
};
if (canvasElem && options.shouldUseIntersectionObserver) {
if (canvasElem && options.shouldUseIntersectionObserver !== false) {
observe(canvasElem, onChange);
}
return () => {