[Mobile] Gestures

Removed firstTouchPan and use
firstTouch for both the pinch and the
single touch pan.
This commit is contained in:
Shivam Dave 2015-08-31 16:22:43 -07:00
parent 8511c957a0
commit 29df378851

View File

@ -46,7 +46,7 @@ define(
firstTouches,
firstTouch,
firstTouchDistance,
firstTouchPan,
lastTouchDistance,
$canvas = $element.find('canvas');
function updateAxesForCurrentViewport() {
@ -348,7 +348,7 @@ define(
firstTouches = [trackTouchPosition(touches[0], bounds).positionAsPlotPoint,
trackTouchPosition(touches[1], bounds).positionAsPlotPoint];
firstTouchDistance = distance;
firstTouchPan = trackTouchPosition(midpoint, bounds).positionAsPlotPoint;
firstTouch = trackTouchPosition(midpoint, bounds).positionAsPlotPoint;
}
function updatePan(touch, bounds) {