You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
@@ -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 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user