Allow browser context menu for images in reader (#524)

The changes of dabe88385d removed the ability to copy/open images in a new tab due to enabling scrolling via left mouse click and dragging the mouse.
This commit is contained in:
schroda
2023-12-28 20:22:34 +01:00
committed by GitHub
parent 120e97e882
commit 356303ab5a
2 changed files with 1 additions and 3 deletions

View File

@@ -45,7 +45,6 @@ function imageStyle(settings: IReaderSettings): any {
height: 'auto',
maxHeight: '99vh',
objectFit: 'contain',
pointerEvents: 'none',
};
}
@@ -55,7 +54,6 @@ function imageStyle(settings: IReaderSettings): any {
minWidth: '50vw',
width: dimensions.width < dimensions.height ? '100vw' : '100%',
maxWidth: '100%',
pointerEvents: 'none',
};
}

View File

@@ -59,7 +59,7 @@ export function SpinnerImage(props: IProps) {
return <Box sx={spinnerStyle} />;
}
return <img style={imgStyle} ref={imgRef} src={imageSrc} alt={alt} />;
return <img style={imgStyle} ref={imgRef} src={imageSrc} alt={alt} draggable={false} />;
}
SpinnerImage.defaultProps = {