fix(MainForm.cs): update snap grid to be 1/4 of thumbnail size

This commit is contained in:
2025-08-29 23:56:36 +02:00
parent b469d4a4f4
commit 328e77aa2f

View File

@@ -502,6 +502,11 @@ namespace EveOPreview.View {
this._suppressEvents = false;
}
// Update snap grid X and Y to 1/4 of width and height
Size currentSize = this.ThumbnailSize;
this.ThumbnailSnapToGridSizeX = currentSize.Width / 4;
this.ThumbnailSnapToGridSizeY = currentSize.Height / 4;
this.ThumbnailsSizeChanged?.Invoke();
}
@@ -548,6 +553,11 @@ namespace EveOPreview.View {
this._suppressEvents = false;
}
// Update snap grid X and Y to 1/4 of width and height
Size currentSize = this.ThumbnailSize;
this.ThumbnailSnapToGridSizeX = currentSize.Width / 4;
this.ThumbnailSnapToGridSizeY = currentSize.Height / 4;
// Prevent the default scroll behavior
((HandledMouseEventArgs)e).Handled = true;