Remove unused code
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
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 => {
|
||||
ev.stopPropagation();
|
||||
ev.preventDefault();
|
||||
|
|
Loading…
Reference in New Issue