Improve touch event handling and tweak bunch of constants.