Drag preselected items even when "prefer selection to dragging" enabled
Not being able to drag an already-selected item feels broken
This commit is contained in:
parent
1eb423830e
commit
d530e2c2cd
|
@ -375,7 +375,8 @@ int EE_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
|
||||||
if( auto schframe = dynamic_cast<SCH_EDIT_FRAME*>( m_frame ) )
|
if( auto schframe = dynamic_cast<SCH_EDIT_FRAME*>( m_frame ) )
|
||||||
schframe->FocusOnItem( nullptr );
|
schframe->FocusOnItem( nullptr );
|
||||||
|
|
||||||
if( m_additive || m_subtractive || m_exclusive_or || m_frame->GetDragSelects() )
|
if( m_additive || m_subtractive || m_exclusive_or ||
|
||||||
|
( m_selection.Empty() && m_frame->GetDragSelects() ) )
|
||||||
{
|
{
|
||||||
selectMultiple();
|
selectMultiple();
|
||||||
}
|
}
|
||||||
|
|
|
@ -289,7 +289,8 @@ int SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
|
||||||
{
|
{
|
||||||
m_frame->FocusOnItem( nullptr );
|
m_frame->FocusOnItem( nullptr );
|
||||||
|
|
||||||
if( m_additive || m_subtractive || m_exclusive_or || dragAlwaysSelects )
|
if( m_additive || m_subtractive || m_exclusive_or ||
|
||||||
|
( m_selection.Empty() && dragAlwaysSelects ) )
|
||||||
{
|
{
|
||||||
selectMultiple();
|
selectMultiple();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue