Patch attached with explanation.
Created attachment 30099 [details] scrollingunify.patch Unify scrolling code constants.
Comment on attachment 30099 [details] scrollingunify.patch Nice cleanup.
Fixed landed by xan in r43390