Use correct cursor when we can't zoom

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-04-24 09:00:15 +02:00
parent e0e9ccbf95
commit dcc060f6f7
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 2 additions and 0 deletions

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 {