ignore generated files
move function definitions
do not swallow click and touch events