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:
@@ -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',
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user