You've already forked matrix-react-sdk
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:
@@ -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})
|
||||
|
Reference in New Issue
Block a user