Add option to restrict drag to bounding box

Implements #23 with rudimentary tests. Not quite sure how to test the bounding box without dragging the thing in a browser...