fix: direction of rotation

This commit is contained in:
martabal 2023-11-23 16:43:02 +01:00
parent 5fca8499ec
commit 2b2c7979a1
No known key found for this signature in database
GPG key ID: C00196E3148A52BD

View file

@ -12,7 +12,7 @@
export let asset: AssetResponseDto;
export let element: HTMLDivElement | undefined = undefined;
export let haveFadeTransition = true;
export const rotate = () => setZoomImageWheelState({ currentRotation: $zoomImageWheelState.currentRotation + 90 });
export const rotate = () => setZoomImageWheelState({ currentRotation: $zoomImageWheelState.currentRotation - 90 });
let imgElement: HTMLDivElement;
let assetData: string;