Skip to content

Commit

Permalink
fix scroll prevention
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Jun 26, 2022
1 parent 5c68461 commit c1d2c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/views/article.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Article {
this.delegatedOnClick = delegate.bind(this.el, 'a, area', 'click', this.onClick)
this.el.addEventListener('scroll', this.onScroll)
} else {
this.el.addEventListener('mousewheel', preventDefault)
this.el.addEventListener('wheel', preventDefault, { passive: false })
}

bus.on('article-loaded', this.onArticleLoaded)
Expand Down

0 comments on commit c1d2c3d

Please sign in to comment.