How to Set Up Source Engine-Style Inventory Scroll?

Here’s what #3 of @mightyenigma 's [suggestion][1] is saying:

This will keep the value in range 0-4 as you scroll the mouse wheel up / down.