From 3e2c3f913bb3aed4264c8a83a0a4958aafef948e Mon Sep 17 00:00:00 2001 From: Shivam Dave Date: Fri, 28 Aug 2015 16:48:54 -0700 Subject: [PATCH] [Mobile] Gesture Check Commented out panand trackes current 2 touches on pinch. --- .../plot-reborn/src/directives/MCTPlot.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/platform/features/plot-reborn/src/directives/MCTPlot.js b/platform/features/plot-reborn/src/directives/MCTPlot.js index 042f36a5fc..0260c87223 100644 --- a/platform/features/plot-reborn/src/directives/MCTPlot.js +++ b/platform/features/plot-reborn/src/directives/MCTPlot.js @@ -272,17 +272,17 @@ define( updateAxesForCurrentViewport(); } - function updateZoom(midpoint, bounds, touches, distance) { + function updateZoom(midpoint, bounds, touches) { // calculate offset between points. Apply that offset to viewport. var midpointPosition = trackTouchPosition(midpoint, bounds), newMidpointPosition = midpointPosition.positionAsPlotPoint, newTouchPosition = [trackTouchPosition(touches[0], bounds).positionAsPlotPoint, trackTouchPosition(touches[1], bounds).positionAsPlotPoint]; - //console.log("0 Domain :"); - //console.log("0 Range :"); - //console.log("1 Domain :"); - //console.log("1 Range :"); + console.log("0 Domain :" + newTouchPosition[0].domain); + console.log("0 Range :" + newTouchPosition[0].range); + console.log("1 Domain :" + newTouchPosition[1].domain); + console.log("1 Range :" + newTouchPosition[1].range); $scope.viewport = { topLeft: { @@ -337,15 +337,15 @@ define( } function onPinchChange(event, touch) { - updateZoom(touch.midpoint, touch.bounds, touch.touches, touch.distance); + updateZoom(touch.midpoint, touch.bounds, touch.touches); } function onPanStart(event, touch) { - startPan(touch.touch, touch.bounds); + //startPan(touch.touch, touch.bounds); } function onPanChange(event, touch) { - updatePan(touch.touch, touch.bounds); + //updatePan(touch.touch, touch.bounds); } function onTouchEnd(event) {