For those wondering like I was, mousewheels typically use optical or magnetic rotary encoders. However some do actually use potentiometers. I'm pretty sure the one pictured is an encoder though; all of the potentiometer based mousewheels I can find are way more bulky than that.
Edit: Damn it Lemmy. Fix your sorting so I'm not accidentally commenting on 4 day old posts.