mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
Show grabbing cursor
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
25873c8759
commit
d58c17ff3b
2 changed files with 1 additions and 4 deletions
|
@ -47,10 +47,6 @@ limitations under the License.
|
|||
max-height: 70vh;
|
||||
min-width: 100px;
|
||||
min-height: 100px;
|
||||
|
||||
&:hover {
|
||||
cursor: grab;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_ImageView_panel {
|
||||
|
|
|
@ -264,6 +264,7 @@ export default class ImageView extends React.Component {
|
|||
* we would apply the translation to an already rotated
|
||||
* image causing it translate in the wrong direction. */
|
||||
const style = {
|
||||
cursor: this.state.moving ? "grabbing" : "grab",
|
||||
transform: `translateX(${translatePixelsX})
|
||||
translateY(${translatePixelsY})
|
||||
scale(${zoomPercentage})
|
||||
|
|
Loading…
Reference in a new issue