Linux: Debugger - Fixed an issue when zooming out in viewers

This commit is contained in:
Sour 2019-10-26 16:28:14 -04:00
parent 6f4a1b2d37
commit a5f1d4f5ad

View file

@ -42,6 +42,12 @@ namespace Mesen.GUI.Debugger.Controls
this.VerticalScroll.Value = vert;
this.VerticalScroll.Value = vert;
} else {
if(Program.IsMono) {
//Patch for Mono to prevent a scrolling bug when zooming out.
//Breaks the zoom in/out logic to keep the current scroll position when zooming, but that's better than the original bug.
this.HorizontalScroll.Value = 0;
this.VerticalScroll.Value = 0;
}
this.OnZoom?.Invoke(e.Delta > 0 ? 1 : -1);
}
}