From 356303ab5adf0f33f3dcfa5c24fb821268b82842 Mon Sep 17 00:00:00 2001
From: schroda <50052685+schroda@users.noreply.github.com>
Date: Thu, 28 Dec 2023 20:22:34 +0100
Subject: [PATCH] Allow browser context menu for images in reader (#524)
The changes of dabe88385d0ff1017eea6e3df9d620cc6550e33f removed the ability to copy/open images in a new tab due to enabling scrolling via left mouse click and dragging the mouse.
---
src/components/reader/Page.tsx | 2 --
src/components/util/SpinnerImage.tsx | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/components/reader/Page.tsx b/src/components/reader/Page.tsx
index 2ce8f35f..58f344e5 100644
--- a/src/components/reader/Page.tsx
+++ b/src/components/reader/Page.tsx
@@ -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',
};
}
diff --git a/src/components/util/SpinnerImage.tsx b/src/components/util/SpinnerImage.tsx
index 63414271..5269c388 100644
--- a/src/components/util/SpinnerImage.tsx
+++ b/src/components/util/SpinnerImage.tsx
@@ -59,7 +59,7 @@ export function SpinnerImage(props: IProps) {
return ;
}
- return
;
+ return
;
}
SpinnerImage.defaultProps = {