Implementing Figma-Style Drag-to-Adjust Number Inputs

How to build the delightful click-and-drag number input interaction from design tools using the Pointer Lock API.