Debugger: Fixed scrolling issue when updating code viewer without updating active address

This commit is contained in:
Sour 2019-04-07 18:16:52 -04:00
parent 94b79c6527
commit 7619ff83c9

View file

@ -100,6 +100,7 @@ namespace Mesen.GUI.Debugger.Controls
int lineIndex = _manager.Provider.GetLineIndex((UInt32)centerLineAddress) + scrollOffset; int lineIndex = _manager.Provider.GetLineIndex((UInt32)centerLineAddress) + scrollOffset;
ctrlCode.ScrollToLineIndex(lineIndex, eHistoryType.None, false, true); ctrlCode.ScrollToLineIndex(lineIndex, eHistoryType.None, false, true);
} }
GoToActiveAddress();
} }
public ctrlScrollableTextbox CodeViewer { get { return ctrlCode; } } public ctrlScrollableTextbox CodeViewer { get { return ctrlCode; } }