Skip to content

Commit

Permalink
fix: use isInLogicalViewport for intersection calculation on init (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
fand authored Aug 14, 2024
1 parent 7c03b83 commit ffcb13a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vfx-js/src/vfx-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ export class VFXPlayer {
uniforms,
uniformGenerators,
startTime: now,
enterTime: isInViewport ? now : -Infinity,
leaveTime: isInViewport ? Infinity : -Infinity,
enterTime: isInLogicalViewport ? now : -Infinity,
leaveTime: isInLogicalViewport ? Infinity : -Infinity,
release: opts.release ?? Infinity,
isGif,
isFullScreen,
Expand Down

0 comments on commit ffcb13a

Please sign in to comment.