mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
Remove unused code
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
8454a2d440
commit
3e408b3fcd
@ -160,18 +160,6 @@ export default class ImageView extends React.Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
onZoomClick = () => {
|
|
||||||
if (this.state.zoom <= this.minZoom) {
|
|
||||||
this.setState({zoom: this.maxZoom});
|
|
||||||
} else {
|
|
||||||
this.setState({
|
|
||||||
zoom: this.minZoom,
|
|
||||||
translationX: 0,
|
|
||||||
translationY: 0,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onStartMoving = ev => {
|
onStartMoving = ev => {
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user