You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
@@ -91,6 +91,11 @@ export default class ImageView extends React.Component {
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (newZoom >= 300) {
|
||||||
|
this.setState({zoom: 300});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
zoom: newZoom,
|
zoom: newZoom,
|
||||||
});
|
});
|
||||||
@@ -138,6 +143,11 @@ export default class ImageView extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
onZoomInClick = () => {
|
onZoomInClick = () => {
|
||||||
|
if (this.state.zoom >= 300) {
|
||||||
|
this.setState({zoom: 300});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
zoom: this.state.zoom + 10,
|
zoom: this.state.zoom + 10,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user