Skip to content

Commit

Permalink
interpret undefined definition for shouldUseIntersectionObserver as true
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymovin committed May 27, 2024
1 parent 1c987e7 commit baf9dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useRive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit baf9dbe

Please sign in to comment.