Actually, I tried the libraries separately. I used GestureDetector first when I noticed the strange effect. After hours of tweaking my code to no avail, I switched to ZoomImageView. Then I noticed later it has the same problem. By the way, I did not change anything in the example project that came with ZoomImageView.