Added option for max drag distance

This adds support for a max drag distance. Needed on iPad so that you can't drag open the reveal most of the way across the screen.