From 4e461e1c9c808fed0a6636691888a2d22bf1cbc6 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Fri, 29 Aug 2025 22:43:50 +0200 Subject: [PATCH] refactor(ThumbnailManager.cs): use configured snap range for thumbnail view alignment --- .../Services/Implementation/ThumbnailManager.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Eve-O-Preview/Services/Implementation/ThumbnailManager.cs b/src/Eve-O-Preview/Services/Implementation/ThumbnailManager.cs index 0568ef8..5f3a50f 100644 --- a/src/Eve-O-Preview/Services/Implementation/ThumbnailManager.cs +++ b/src/Eve-O-Preview/Services/Implementation/ThumbnailManager.cs @@ -756,9 +756,9 @@ namespace EveOPreview.Services { Point[] viewPoints = { new Point(baseX, baseY), new Point(baseX + width, baseY), new Point(baseX, baseY + height), new Point(baseX + width, baseY + height) }; - // TODO Extract constants - int thresholdX = Math.Max(20, width / 10); - int thresholdY = Math.Max(20, height / 10); + // Use the configured snap range + int thresholdX = this._configuration.ThumbnailSnapRange; + int thresholdY = this._configuration.ThumbnailSnapRange; foreach (var entry in this._thumbnailViews) { IThumbnailView testView = entry.Value;