Bug panning a image after it moves

When you makes a fast movement to the left or right on the image, it pans and if in a ViewPager, it doesn't go to another page.
But when you try again going to the next or previous page, you can't till you touch the screen, makes zoom...