From: Robert Kaiser Date: Fri, 16 Aug 2013 04:42:18 +0000 (+0200) Subject: log pinch widths X-Git-Tag: legacy-preGL~14 X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=7710f0a3d22b1856b08f57b90101c09876f1c89c;p=lantea.git log pinch widths --- diff --git a/js/map.js b/js/map.js index 2ecd3a4..ce66429 100644 --- a/js/map.js +++ b/js/map.js @@ -512,6 +512,7 @@ var mapEvHandler = { Math.pow(aEvent.targetTouches.item(1).clientY - aEvent.targetTouches.item(0).clientY, 2) ); + console.log(gPinchStartWidth + ' ' + curPinchStartWidth); if (gPinchStartWidth / curPinchStartWidth > 1.7 || gPinchStartWidth / curPinchStartWidth < 0.6) { var newZoomLevel = gPos.z + (gPinchStartWidth < curPinchStartWidth ? 1 : -1);