From c7141a43a21c4bf0586b38b955fa62ed3d7d7f61 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Fri, 29 Aug 2025 23:56:36 +0200 Subject: [PATCH] fix(MainForm.cs): update snap grid to be 1/4 of thumbnail size --- src/Eve-O-Preview/View/Implementation/MainForm.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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;