File tree Expand file tree Collapse file tree
JuceLibraryCode/modules/juce_gui_basics/widgets Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -591,8 +591,8 @@ void Toolbar::itemDragMove (const SourceDetails& dragSourceDetails)
591591 {
592592 const Rectangle<int > previousPos (animator.getComponentDestination (prev));
593593
594- if (abs (dragObjectLeft - (vertical ? previousPos.getY () : previousPos.getX ())
595- < abs (dragObjectRight - (vertical ? current.getBottom () : current.getRight ()))))
594+ if (abs (dragObjectLeft - (vertical ? previousPos.getY () : previousPos.getX ()))
595+ < abs (dragObjectRight - (vertical ? current.getBottom () : current.getRight ())))
596596 {
597597 newIndex = getIndexOfChildComponent (prev);
598598 }
@@ -602,8 +602,8 @@ void Toolbar::itemDragMove (const SourceDetails& dragSourceDetails)
602602 {
603603 const Rectangle<int > nextPos (animator.getComponentDestination (next));
604604
605- if (abs (dragObjectLeft - (vertical ? current.getY () : current.getX ())
606- > abs (dragObjectRight - (vertical ? nextPos.getBottom () : nextPos.getRight ()))))
605+ if (abs (dragObjectLeft - (vertical ? current.getY () : current.getX ()))
606+ > abs (dragObjectRight - (vertical ? nextPos.getBottom () : nextPos.getRight ())))
607607 {
608608 newIndex = getIndexOfChildComponent (next) + 1 ;
609609 }
You can’t perform that action at this time.
0 commit comments