Closed 1u0n closed 1 year ago
Thanks for reporting it. Will look into it!
Yes, you were right. It was because the createObserver
function was using the default options instead of the ones overridden by the user. I've managed to fix this, but I have also identified other small areas of improvement related to this, so I still want to take a few days to work on it.
Expect a new minor release in the upcoming days.
I just released version 0.7.0
. Feel free to re-open this issue or to create a new one in case of problems!
Describe the bug
when creating the observer like
the lib options (transition, x, debug, ref, ...) are correctly used, but the Observer options (threshold, marginBottom, ...) are ignored.
This is I guess due to passing
config.observer
directly increateObserver()
instead of creating an object with the user's parameters.Changing the Observer options through the API (setObserverThreshold, setObserverRootMargin, ...) works fine.
Reproduction
the applied threshold will be the default 0.6 instead of the desired 0.2. Same for margins and root.
System Info
Severity
Serious, but I can work around it
Additional Information
No response