Linux: Debugger - Fixed an issue when zooming out in viewers
This commit is contained in:
parent
6f4a1b2d37
commit
a5f1d4f5ad
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue