Skip to content

Commit d5403e1

Browse files
committed
Add a deadzone to the zoom slider (see ngld#152)
1 parent 661e4eb commit d5403e1

File tree

2 files changed

+78
-72
lines changed

2 files changed

+78
-72
lines changed

OverlayPlugin.Core/Overlays/MiniParseConfigPanel.cs

+6
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,12 @@ private void checkLogConsoleMessages_CheckedChanged(object sender, EventArgs e)
250250

251251
private void tbZoom_ValueChanged(object sender, EventArgs e)
252252
{
253+
if (this.config.Zoom == 1 && Math.Abs(this.config.Zoom - this.tbZoom.Value) < 10)
254+
{
255+
// Don't change the zoom level if we don't want any zoom (see #152 for details).
256+
return;
257+
}
258+
253259
this.config.Zoom = this.tbZoom.Value;
254260
}
255261

0 commit comments

Comments
 (0)