refactor ifs into case
improve user intent recognition when scrolling
extract and refactor pan gesture recognizer