Skip to content

Commit 259f201

Browse files
committed
Allow dragging the whole card in full mode, not just the title bar
1 parent 294a56e commit 259f201

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

MainWindow.axaml.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ public MainWindow()
9191
_compactChk = this.FindControl<CheckBox>("CompactChk")!;
9292

9393
// ---- full view wiring ----
94-
this.FindControl<Grid>("TitleBar")!.PointerPressed += OnDrag;
94+
// drag the whole card / settings overlay; buttons consume their own press so they won't drag
95+
_fullCard.PointerPressed += OnDrag;
96+
_settingsOverlay.PointerPressed += OnDrag;
9597
this.FindControl<Button>("SettingsBtn")!.Click += (_, _) => ShowSettings(true);
9698
this.FindControl<Button>("CompactBtn")!.Click += (_, _) => SetCompact(true);
9799
this.FindControl<Button>("PinBtn")!.Click += OnPin;

0 commit comments

Comments
 (0)