diff --git a/.changeset/remove-right-click-drag.md b/.changeset/remove-right-click-drag.md new file mode 100644 index 000000000..1627565d1 --- /dev/null +++ b/.changeset/remove-right-click-drag.md @@ -0,0 +1,5 @@ +--- +default: patch +--- + +Right clicks no longer drag images in the viewer. diff --git a/src/app/hooks/useImageGestures.ts b/src/app/hooks/useImageGestures.ts index cf5d6fbe5..9c10d676d 100644 --- a/src/app/hooks/useImageGestures.ts +++ b/src/app/hooks/useImageGestures.ts @@ -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;