diff --git a/src/components/views/elements/ImageView.tsx b/src/components/views/elements/ImageView.tsx index 2bcdaf15cc..05e71b67bf 100644 --- a/src/components/views/elements/ImageView.tsx +++ b/src/components/views/elements/ImageView.tsx @@ -137,13 +137,13 @@ export default class ImageView extends React.Component { private onRotateCounterClockwiseClick = () => { const cur = this.state.rotation; - const rotationDegrees = (cur - 90) % 360; + const rotationDegrees = cur - 90; this.setState({ rotation: rotationDegrees }); }; private onRotateClockwiseClick = () => { const cur = this.state.rotation; - const rotationDegrees = (cur + 90) % 360; + const rotationDegrees = cur + 90; this.setState({ rotation: rotationDegrees }); };