Right-drag with an item in hand: one item into every slot you pass. The touched slots are tinted.
Left-drag with an item in hand: gathers the matching stacks it passes into your hand.
Shift + left-drag: quick-moves every slot you pass.