The feature you're talking about is called auto-scrolling you can turn it on in the Firefox preferences (not sure about Opera). if you want it to be system wide check out this post on stack exchange. You may also want to check the repo's for whatever distro you're running.