Fix value being cached when it shouldn't in `InputRoll.LastVisibleRow`

resolves 
partially reverts dd4f9aaf6
This commit is contained in:
YoshiRulz 2024-07-21 06:28:31 +10:00
parent cc1b9c5903
commit 8fda95066c
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 1 additions and 2 deletions
src/BizHawk.Client.EmuHawk/CustomControls/InputRoll

View File

@ -797,7 +797,6 @@ namespace BizHawk.Client.EmuHawk
}
// Small jump, more accurate
var range = 0.RangeTo(_lagFrames[VisibleRows - halfRow]);
int lastVisible = LastFullyVisibleRow;
do
{
@ -813,7 +812,7 @@ namespace BizHawk.Client.EmuHawk
SetLagFramesArray();
lastVisible = LastFullyVisibleRow;
}
while (!range.Contains(lastVisible - value) && FirstVisibleRow != 0);
while ((lastVisible - value < 0 || _lagFrames[VisibleRows - halfRow] < lastVisible - value) && FirstVisibleRow != 0);
}
_programmaticallyChangingRow = false;
PointMouseToNewCell();