1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-10 19:43:07 +03:00

Show grabbing cursor

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-02-25 07:50:53 +01:00
parent 25873c8759
commit d58c17ff3b
2 changed files with 1 additions and 4 deletions

View File

@@ -47,10 +47,6 @@ limitations under the License.
max-height: 70vh;
min-width: 100px;
min-height: 100px;
&:hover {
cursor: grab;
}
}
.mx_ImageView_panel {

View File

@@ -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})