Skip to content

Commit

Permalink
app/plans/assets: Use passive scroll listener
Browse files Browse the repository at this point in the history
  • Loading branch information
rmader committed Feb 18, 2021
1 parent 23fd841 commit 302a3eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meinberlin/apps/plans/assets/PlansList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class LazyBackground extends React.Component {
}

componentDidMount () {
window.addEventListener('scroll', this.handleScroll.bind(this))
window.addEventListener('scroll', this.handleScroll.bind(this), { passive: true })
this.checkLoadImage()
}

Expand Down

0 comments on commit 302a3eb

Please sign in to comment.