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
No known key found for this signature in database
GPG key ID: 9760693FDD98A790
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})