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:
Jeff Young 2021-09-29 18:30:22 +01:00
parent 0438a45176
commit 2489408c34
1 changed files with 2 additions and 2 deletions

View File

@ -223,12 +223,12 @@ bool TOOL_DISPATCHER::handleMouseButton( wxEvent& aEvent, int aIndex, bool aMoti
#ifdef __WXMAC__
if( wxGetLocalTimeMillis() - st->downTimestamp > DragTimeThreshold )
st->dragging = true;
#else
#endif
VECTOR2D offset = getView()->ToScreen( m_lastMousePos - st->dragOrigin, false );
if( abs( offset.x ) > m_sysDragMinX || abs( offset.y ) > m_sysDragMinY )
st->dragging = true;
#endif
}
if( st->dragging )