Added a comment

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2020-12-20 09:51:57 +01:00
parent ae25ff8216
commit ec5fcaf59b
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,8 @@ export default class ImageView extends React.Component {
}
componentDidMount() {
// We have to use addEventListener() because the listener
// needs to be passive in order to work with Chromium
this.focusLock.addEventListener('wheel', this.onWheel, { passive: false });
}