Skip to content

Commit 3084084

Browse files
committed
Fix preview highlight circle toggle to respect DisplayHighlight
The preview overlay was showing the mouse highlight circle whenever the pointer overlay was enabled, ignoring the DisplayHighlight setting. Aligns config preview behavior with main by toggling based on DisplayHighlight.
1 parent 2b77248 commit 3084084

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/Captura/Pages/OverlayConfigPage.xaml.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,6 @@ bool IsOutsideGrid(Point Point)
305305

306306
void UIElement_OnMouseMove(object Sender, MouseEventArgs E)
307307
{
308-
if (ServiceProvider.Get<Settings>().MousePointerOverlay.Display)
309-
MousePointer.Visibility = Visibility.Visible;
310-
311308
var position = E.GetPosition(Grid);
312309

313310
if (IsOutsideGrid(position))
@@ -316,6 +313,12 @@ void UIElement_OnMouseMove(object Sender, MouseEventArgs E)
316313
return;
317314
}
318315

316+
// Show/hide circle based on DisplayHighlight setting
317+
if (ServiceProvider.Get<Settings>().MousePointerOverlay.DisplayHighlight)
318+
MousePointer.Visibility = Visibility.Visible;
319+
else
320+
MousePointer.Visibility = Visibility.Collapsed;
321+
319322
if (_dragging)
320323
UpdateMouseClickPosition(position);
321324

0 commit comments

Comments
 (0)