Optimized computeDistance function in GestureRecognizer
Makes MiniBrowser's handlePinch call WKViewGetContentPosition only once