mirror of
https://github.com/rive-app/rive-react.git
synced 2026-03-13 08:22:30 +08:00
interpret undefined definition for shouldUseIntersectionObserver as true
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user