We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c8a63a + cc38e46 commit d5a1272Copy full SHA for d5a1272
src/Scrollama.js
@@ -210,7 +210,7 @@ class Scrollama extends Component {
210
const marginBottom = offsetMargin - this.viewH;
211
const options = {
212
rootMargin: `${marginTop}px 0px ${marginBottom}px 0px`,
213
- threshold: this.createThreshold(step.state.offsetHeight),
+ threshold: this.createThreshold(step.state.offsetHeight ?? 1),
214
};
215
216
const obs = new IntersectionObserver(this.intersectStepProgress, options);
0 commit comments