Perspective - Swiping drags the screen around

I have a carousel on my mobile application that uses swiping to swap between screens. The problem I am running into is swiping through the carousel sometimes drags the whole screen left and right instead. Is there a way to make the screen stable and not draggable?