mirror of
https://github.com/element-hq/element-web
synced 2024-10-25 04:05:55 +03:00
Added a comment
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
ae25ff8216
commit
ec5fcaf59b
1 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,8 @@ export default class ImageView extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
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 });
|
this.focusLock.addEventListener('wheel', this.onWheel, { passive: false });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue