Add invert as a possible value for the contain option. Fix a bug with mouseup ending the pan in desktop browsers. Closes gh-14.