Use correct cursor when we can't zoom
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
e0e9ccbf95
commit
dcc060f6f7
|
@ -312,6 +312,8 @@ export default class ImageView extends React.Component<IProps, IState> {
|
||||||
let cursor;
|
let cursor;
|
||||||
if (this.state.moving) {
|
if (this.state.moving) {
|
||||||
cursor= "grabbing";
|
cursor= "grabbing";
|
||||||
|
} else if (this.state.maxZoom === this.state.minZoom) {
|
||||||
|
cursor = "pointer";
|
||||||
} else if (this.state.zoom === this.state.minZoom) {
|
} else if (this.state.zoom === this.state.minZoom) {
|
||||||
cursor = "zoom-in";
|
cursor = "zoom-in";
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue