Item Scroller Mod (1.19.2, 1.18.18) adds multiple ways to move items in inventory GUIs. Scrolling the mouse wheel across the item slots is possible (optionally while you hold modifier keys), or holding down modifier keys, then left- or right-clicking to drag the slots. This mod is client-only!
Mods can be used to move whole stacks, matching items, or all items. The mod also features special handling for Villagers, which makes it easier to trade without having to click around.
You can choose to enable or disable each mode individually. You can also change the meaning of scroll direction, such as “scrolling up”, or reverse the scroll directions. You can access all the configurations via the in-game menu.