Use position as well as time-based drag semantics on Mac.
Fixes https://gitlab.com/kicad/code/kicad/issues/9276
This commit is contained in:
parent
0438a45176
commit
2489408c34
|
@ -223,12 +223,12 @@ bool TOOL_DISPATCHER::handleMouseButton( wxEvent& aEvent, int aIndex, bool aMoti
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
if( wxGetLocalTimeMillis() - st->downTimestamp > DragTimeThreshold )
|
if( wxGetLocalTimeMillis() - st->downTimestamp > DragTimeThreshold )
|
||||||
st->dragging = true;
|
st->dragging = true;
|
||||||
#else
|
#endif
|
||||||
VECTOR2D offset = getView()->ToScreen( m_lastMousePos - st->dragOrigin, false );
|
VECTOR2D offset = getView()->ToScreen( m_lastMousePos - st->dragOrigin, false );
|
||||||
|
|
||||||
if( abs( offset.x ) > m_sysDragMinX || abs( offset.y ) > m_sysDragMinY )
|
if( abs( offset.x ) > m_sysDragMinX || abs( offset.y ) > m_sysDragMinY )
|
||||||
st->dragging = true;
|
st->dragging = true;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( st->dragging )
|
if( st->dragging )
|
||||||
|
|
Loading…
Reference in New Issue