1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

Use correct cursor when we can't zoom

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-04-24 09:00:15 +02:00
parent e0e9ccbf95
commit dcc060f6f7

View File

@@ -312,6 +312,8 @@ export default class ImageView extends React.Component<IProps, IState> {
let cursor;
if (this.state.moving) {
cursor= "grabbing";
} else if (this.state.maxZoom === this.state.minZoom) {
cursor = "pointer";
} else if (this.state.zoom === this.state.minZoom) {
cursor = "zoom-in";
} else {