Find a number field. For example, select the default cube and open the sidebar in the 3D Viewport (N). Under the Item tab you will see Location X.
Start. With the pointer over the field, hold Alt and press the middle mouse button. You can release it straight away; the adjustment keeps running.
Move the mouse left or right. A label right above the field shows the current Value, Step and Sensitivity (Preferences > Quick Adjust can place it elsewhere or show a panel instead, see section 9).
Finish. - Left click or Enter keeps the new value (it counts as one undo step). - Esc or right click cancels and restores the original value.
Two things to know:
If you press Alt + Middle Mouse over something that is not a number, nothing happens. If it is a number that cannot be edited, you get a short warning.
The pointer is hidden and moved to the middle of the Blender window; whenever it goes more than a quarter of the window away from the middle it is brought back, so it never reaches an edge and you can keep going without running out of room. When the adjustment ends it reappears on the field. (If another Blender window, such as Preferences, is over the middle of the window, the pointer stays where it is and wraps at the sides of the editor instead.)
To use Value, Step, Sensitivity or Snap on the label, press Space (Free Mouse): the pointer shows and the mouse stops changing the value. Press Space again to go on adjusting. While the mouse is free the label has a border in the Highlight Color and a line under it reminds you how to lock the mouse again. While the mouse is linked to the value, a click confirms.