Save the drag origin only on the first click
This commit is contained in:
parent
58c32367ee
commit
75f68061a4
|
@ -178,7 +178,10 @@ bool TOOL_DISPATCHER::handleMouseButton( wxEvent& aEvent, int aIndex, bool aMoti
|
|||
if( down ) // Handle mouse button press
|
||||
{
|
||||
st->downTimestamp = wxGetLocalTimeMillis();
|
||||
|
||||
if( !st->pressed ) // save the drag origin on the first click only
|
||||
st->dragOrigin = m_lastMousePos;
|
||||
|
||||
st->downPosition = m_lastMousePos;
|
||||
st->dragMaxDelta = 0;
|
||||
st->pressed = true;
|
||||
|
|
Loading…
Reference in New Issue