Build a Mousewheel with Arduino and JavaScript

Doing one yourself is possible. What resolution do you need? What size should or could it be?