fix(MainForm.cs): update snap grid to be 1/4 of thumbnail size
This commit is contained in:
@@ -502,6 +502,11 @@ namespace EveOPreview.View {
|
|||||||
this._suppressEvents = false;
|
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();
|
this.ThumbnailsSizeChanged?.Invoke();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -548,6 +553,11 @@ namespace EveOPreview.View {
|
|||||||
this._suppressEvents = false;
|
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
|
// Prevent the default scroll behavior
|
||||||
((HandledMouseEventArgs)e).Handled = true;
|
((HandledMouseEventArgs)e).Handled = true;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user