Fix the cells partially opening when scrolling

Also, cleaned up the code in the pan gesture, much of it was
duplicating itself.