Then, run the following command:
xinput --set-int-prop "USB Mouse" "Evdev Wheel Emulation" 8 1
xinput --set-int-prop "USB Mouse" "Evdev Wheel Emulation Button" 8 3
Now, holding the right mouse button and moving up and down will scroll. Very useful for reading long articles.
Requirements: evdev 2.1, X server 1.6 and xinput 1.4. Don't forget to check the evdev man page, there's a few extra tweaks related to wheel emulation. xinput is not persistent, but the above can be achieved with the following xorg.conf.d snippet:
Section "InputClass" Identifier "Wheel Emulation" MatchIsPointer "on" MatchProduct "USB Mouse" Option "EmulateWheelButton" "3" Option "EmulateWheel" "on" EndSectionSave this as /etc/X11/xorg.conf.d/99-wheel-emulation.conf and you're good to go. Requires X Server 1.8 or later, for older servers you can do the same by merging the keys input.x11_options.EmulateWheel and input.x11_options.EmulateWheelButton your HAL fdi file.