diff --git a/src/Eve-O-Preview/View/Implementation/MainForm.cs b/src/Eve-O-Preview/View/Implementation/MainForm.cs index 8c9cfa7..cdbfd49 100644 --- a/src/Eve-O-Preview/View/Implementation/MainForm.cs +++ b/src/Eve-O-Preview/View/Implementation/MainForm.cs @@ -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;