Tastudio - fix column click

This commit is contained in:
adelikat 2015-07-18 11:07:36 -04:00
parent bc553605ac
commit aebd7f3dae
1 changed files with 8 additions and 1 deletions

View File

@ -1351,11 +1351,17 @@ namespace BizHawk.Client.EmuHawk
#region Mouse and Key Events
private bool _columnDownMoved = false;
protected override void OnMouseMove(MouseEventArgs e)
{
_currentX = e.X;
_currentY = e.Y;
if (_columnDown != null)
{
_columnDownMoved = true;
}
if (IsPaintDown)
{
if (HorizontalOrientation)
@ -1553,7 +1559,7 @@ namespace BizHawk.Client.EmuHawk
{
if (IsHoveringOnColumnCell)
{
if (_columnDown != null)
if (_columnDown != null && _columnDownMoved)
{
DoColumnReorder();
_columnDown = null;
@ -1570,6 +1576,7 @@ namespace BizHawk.Client.EmuHawk
}
_columnDown = null;
_columnDownMoved = false;
RightButtonHeld = false;
IsPaintDown = false;
base.OnMouseUp(e);