mirror of https://github.com/vector-im/riot-web
Show grabbing cursor
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
25873c8759
commit
d58c17ff3b
|
@ -47,10 +47,6 @@ limitations under the License.
|
||||||
max-height: 70vh;
|
max-height: 70vh;
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
min-height: 100px;
|
min-height: 100px;
|
||||||
|
|
||||||
&:hover {
|
|
||||||
cursor: grab;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_ImageView_panel {
|
.mx_ImageView_panel {
|
||||||
|
|
|
@ -264,6 +264,7 @@ export default class ImageView extends React.Component {
|
||||||
* we would apply the translation to an already rotated
|
* we would apply the translation to an already rotated
|
||||||
* image causing it translate in the wrong direction. */
|
* image causing it translate in the wrong direction. */
|
||||||
const style = {
|
const style = {
|
||||||
|
cursor: this.state.moving ? "grabbing" : "grab",
|
||||||
transform: `translateX(${translatePixelsX})
|
transform: `translateX(${translatePixelsX})
|
||||||
translateY(${translatePixelsY})
|
translateY(${translatePixelsY})
|
||||||
scale(${zoomPercentage})
|
scale(${zoomPercentage})
|
||||||
|
|
Loading…
Reference in New Issue