From 517e60d59372226df794a73772177abfb2e14928 Mon Sep 17 00:00:00 2001 From: gramps Date: Sun, 1 Nov 2026 09:06:05 -0800 Subject: [PATCH] =?UTF-8?q?fix(zoom):=20the=20magnifier=20freezes=20the=20?= =?UTF-8?q?layers=20=E2=80=94=20no=20picking=20up=20objects=20while=20it?= =?UTF-8?q?=20is=20open?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While zoom is active a left drag moves the box and never selects or moves a layer beneath it (creator ruling 2026-11-01). MouseMove already owned the zoom drag; the missing guard was in MouseLeftButtonDown, which happily hit-tested a layer first and left a stray selection plus a half-started drag behind the moving box. --- Controls/PreviewPane.xaml.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Controls/PreviewPane.xaml.cs b/Controls/PreviewPane.xaml.cs index 015a920..ad53974 100644 --- a/Controls/PreviewPane.xaml.cs +++ b/Controls/PreviewPane.xaml.cs @@ -483,6 +483,10 @@ public partial class PreviewPane : UserControl e.Handled = true; return; } + + // Zoom freezes the layers (creator ruling 2026-11-01): while the magnifier is up, a left + // drag moves the box and NEVER picks up a layer underneath it. MouseMove owns the drag. + if (vm.IsZoomActive) return; var selected = vm.SelectedElement; if (selected is { } sel && IsDraggableElement(sel) && HitHandle(e.GetPosition(grid), sel))