tastudio: account for mouse speed when advancing/rewinding.

this way you get farther if you right-scroll fast, and still navigate precisely otherwise.
This commit is contained in:
feos 2015-10-25 20:48:51 +03:00
parent a4b3a57af2
commit ef07f8b0b0
1 changed files with 3 additions and 4 deletions

View File

@ -584,6 +584,8 @@ namespace BizHawk.Client.EmuHawk
if (TasView.RightButtonHeld && TasView.CurrentCell.RowIndex.HasValue)
{
_supressContextMenu = true;
int notch = e.Delta / 120;
if (GlobalWin.MainForm.IsSeeking)
{
if (e.Delta < 0)
@ -600,10 +602,7 @@ namespace BizHawk.Client.EmuHawk
}
else
{
if (e.Delta < 0)
GoToNextFrame();
else
GoToPreviousFrame();
GoToFrame(Emulator.Frame - notch);
}
}
}