fix: Make right clicking no longer drag images in the image viewer

This commit is contained in:
Septicity committed 2026-04-01 07:03:07 -05:00
1 parent ab80d3388e
commit 2e5663b4ac
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
default: patch
---
Right clicks no longer drag images in the viewer.
+1 -1
View File
@@ -74,7 +74,7 @@ export const useImageGestures = (active: boolean, step = 0.2, min = 0.1, max = 5
const onPointerDown = useCallback(
(e: React.PointerEvent) => {
if (!active) return;
if (!active || (e.pointerType === 'mouse' && e.button === 2)) return;
e.stopPropagation();
const target = e.target as HTMLElement;