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),
|
Point[] viewPoints = { new Point(baseX, baseY), new Point(baseX + width, baseY),
|
||||||
new Point(baseX, baseY + height), new Point(baseX + width, baseY + height) };
|
new Point(baseX, baseY + height), new Point(baseX + width, baseY + height) };
|
||||||
|
|
||||||
// TODO Extract constants
|
// Use the configured snap range
|
||||||
int thresholdX = Math.Max(20, width / 10);
|
int thresholdX = this._configuration.ThumbnailSnapRange;
|
||||||
int thresholdY = Math.Max(20, height / 10);
|
int thresholdY = this._configuration.ThumbnailSnapRange;
|
||||||
|
|
||||||
foreach (var entry in this._thumbnailViews) {
|
foreach (var entry in this._thumbnailViews) {
|
||||||
IThumbnailView testView = entry.Value;
|
IThumbnailView testView = entry.Value;
|
||||||
|
Reference in New Issue
Block a user