For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/api/type-config.config.enableintersectionobserverinitialratiocompatibility.md.
这是开发预览网站。请访问正式文档 lynx-stack.dev

Home > @lynx-js/type-config > Config > enableIntersectionObserverInitialRatioCompatibility

Config.enableIntersectionObserverInitialRatioCompatibility property

Controls the first IntersectionObserver notification. When enabled, the current intersection ratio must differ from initialRatio and reach at least one configured threshold, including zero when the threshold is zero. When disabled, the first notification requires an intersection ratio strictly greater than initialRatio. Later notifications keep the threshold-crossing behavior.

Since: LynxSDK 4.5

Signature:

enableIntersectionObserverInitialRatioCompatibility?: boolean;

Default Value

false