diff --git a/packages/vfx-js/src/vfx-player.ts b/packages/vfx-js/src/vfx-player.ts index 56949f4..4e71ff6 100644 --- a/packages/vfx-js/src/vfx-player.ts +++ b/packages/vfx-js/src/vfx-player.ts @@ -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,