InputRoll - change the column click event to fire on mouse up instead of down

This commit is contained in:
adelikat 2014-10-19 00:16:58 +00:00
parent 10b6bed056
commit e54a731ada
1 changed files with 7 additions and 6 deletions

View File

@ -1144,11 +1144,7 @@ namespace BizHawk.Client.EmuHawk
if (e.Button == MouseButtons.Left)
{
if (IsHoveringOnColumnCell)
{
ColumnClickEvent(ColumnAtX(e.X));
}
else if (IsHoveringOnDataCell)
if (IsHoveringOnDataCell)
{
if (ModifierKeys == Keys.Alt)
{
@ -1243,11 +1239,16 @@ namespace BizHawk.Client.EmuHawk
protected override void OnMouseUp(MouseEventArgs e)
{
if (e.Button == MouseButtons.Left && IsHoveringOnColumnCell)
{
ColumnClickEvent(ColumnAtX(e.X));
}
IsPaintDown = false;
RightButtonHeld = false;
base.OnMouseUp(e);
}
}
private void IncrementScrollBar(ScrollBar bar, bool increment)
{