Tastudio - fix column click
This commit is contained in:
parent
bc553605ac
commit
aebd7f3dae
|
@ -1351,11 +1351,17 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
#region Mouse and Key Events
|
#region Mouse and Key Events
|
||||||
|
|
||||||
|
private bool _columnDownMoved = false;
|
||||||
protected override void OnMouseMove(MouseEventArgs e)
|
protected override void OnMouseMove(MouseEventArgs e)
|
||||||
{
|
{
|
||||||
_currentX = e.X;
|
_currentX = e.X;
|
||||||
_currentY = e.Y;
|
_currentY = e.Y;
|
||||||
|
|
||||||
|
if (_columnDown != null)
|
||||||
|
{
|
||||||
|
_columnDownMoved = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (IsPaintDown)
|
if (IsPaintDown)
|
||||||
{
|
{
|
||||||
if (HorizontalOrientation)
|
if (HorizontalOrientation)
|
||||||
|
@ -1553,7 +1559,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
if (IsHoveringOnColumnCell)
|
if (IsHoveringOnColumnCell)
|
||||||
{
|
{
|
||||||
if (_columnDown != null)
|
if (_columnDown != null && _columnDownMoved)
|
||||||
{
|
{
|
||||||
DoColumnReorder();
|
DoColumnReorder();
|
||||||
_columnDown = null;
|
_columnDown = null;
|
||||||
|
@ -1570,6 +1576,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
|
|
||||||
_columnDown = null;
|
_columnDown = null;
|
||||||
|
_columnDownMoved = false;
|
||||||
RightButtonHeld = false;
|
RightButtonHeld = false;
|
||||||
IsPaintDown = false;
|
IsPaintDown = false;
|
||||||
base.OnMouseUp(e);
|
base.OnMouseUp(e);
|
||||||
|
|
Loading…
Reference in New Issue