refactor(ThumbnailManager.cs): use configured snap range for thumbnail view alignment

This commit is contained in:
2025-08-29 22:43:50 +02:00
parent e53b9712ca
commit 4e461e1c9c

View File

@@ -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;