mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-21 22:41:07 +02:00
Use correct cursor when we can't zoom
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
3ae0bc307c
commit
52e2c136d7
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user