A fingerprint sensor actually works a lot like a touch screen, just at a much smaller scale.
To pre-empt the question, under-screen fingerprint scanners don't work like this.
They either use an optical sensor or, more interestingly, ultrasound - basically like goddam sonar under your screen.