mirror of https://github.com/vector-im/riot-web
Merge pull request #6313 from robintown/fix-image-rotation
Fix being able to un-rotate imagespull/21833/head
commit
92fcfbd8f6
|
@ -122,7 +122,7 @@ export default class ImageView extends React.Component<IProps, IState> {
|
|||
const image = this.image.current;
|
||||
const imageWrapper = this.imageWrapper.current;
|
||||
|
||||
const rotation = inputRotation || this.state.rotation;
|
||||
const rotation = inputRotation ?? this.state.rotation;
|
||||
|
||||
const imageIsNotFlipped = rotation % 180 === 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue