aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/imageZoom
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/imageZoom')
-rw-r--r--src/plugins/imageZoom/README.md6
-rw-r--r--src/plugins/imageZoom/index.tsx9
2 files changed, 15 insertions, 0 deletions
diff --git a/src/plugins/imageZoom/README.md b/src/plugins/imageZoom/README.md
new file mode 100644
index 0000000..8e3b7ef
--- /dev/null
+++ b/src/plugins/imageZoom/README.md
@@ -0,0 +1,6 @@
+# ImageZoom
+
+Lets you zoom in to images and gifs. Use scroll wheel to zoom in and shift + scroll wheel to increase lens radius / size
+
+![Example](https://i.imgur.com/VJdo4aq.png)
+![ContextMenu](https://i.imgur.com/0oaRM2s.png)
diff --git a/src/plugins/imageZoom/index.tsx b/src/plugins/imageZoom/index.tsx
index 71540f2..cca0db0 100644
--- a/src/plugins/imageZoom/index.tsx
+++ b/src/plugins/imageZoom/index.tsx
@@ -99,6 +99,15 @@ const imageContextMenuPatch: NavContextMenuPatchCallback = children => () => {
ContextMenu.close();
}}
/>
+ <Menu.MenuCheckboxItem
+ id="vc-nearest-neighbour"
+ label="Nearset Neighbour"
+ checked={settings.store.nearestNeighbour}
+ action={() => {
+ settings.store.nearestNeighbour = !settings.store.nearestNeighbour;
+ ContextMenu.close();
+ }}
+ />
<Menu.MenuControlItem
id="vc-zoom"
label="Zoom"