mirror of https://github.com/vector-im/riot-web
parent
57b34f8dbc
commit
e0e9ccbf95
|
@ -100,7 +100,6 @@ export default class ImageView extends React.Component<IProps, IState> {
|
||||||
private previousY = 0;
|
private previousY = 0;
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
console.log("LOG calculating", this.props.width, this.props.height);
|
|
||||||
// We have to use addEventListener() because the listener
|
// We have to use addEventListener() because the listener
|
||||||
// needs to be passive in order to work with Chromium
|
// needs to be passive in order to work with Chromium
|
||||||
this.focusLock.current.addEventListener('wheel', this.onWheel, { passive: false });
|
this.focusLock.current.addEventListener('wheel', this.onWheel, { passive: false });
|
||||||
|
|
Loading…
Reference in New Issue