refactor(ThumbnailManager.cs): use configured snap range for thumbnail view alignment
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user