Added a comment

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2020-12-20 09:51:57 +01:00
parent ae25ff8216
commit ec5fcaf59b

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 });
}