Handle pan better with relative (instead of absolute) positioning

With the old code, the range would jump so that your touch is in the
center of the range. With this change, the selected range moves
according to the distance you move your touch, which is more natural
and intuitive.

This PR includes my previous commit: Add iPhone compatibility. #3
Previously, the app was only compatible with iPad, not iPhone/iPod touch.