The juce_MouseEvent methods getDistanceFromDragStartX() and getDistanceFromDragStartY() are incorrectly named, as the value they return may be negative.
Correct terms could be “Offset” or “Displacement”. Distance can never be negative.
This is no big deal, of course, but can be a bit confusing, since getDistanceFromDragStart() does return a distance.
