Add check before move the view when user pan so that the view will not move when user scroll.