X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=blobdiff_plain;f=js%2Fmap.js;h=77585e27c7eb345cfbc7c346259537f23d50b7bc;hp=2ecd3a4de86574dcf6e0cc1dc3d7a4e711ccbc4e;hb=6a42dec82d1f84a676585379401cdad4e44b7b56;hpb=517c0099ce72299ffb350423332a9fccf60a8ab3 diff --git a/js/map.js b/js/map.js index 2ecd3a4..77585e2 100644 --- a/js/map.js +++ b/js/map.js @@ -489,6 +489,7 @@ var mapEvHandler = { Math.pow(aEvent.targetTouches.item(1).clientY - aEvent.targetTouches.item(0).clientY, 2) ); + console.log('!!!' + gPinchStartWidth); } gDragTouchID = aEvent.changedTouches.item(0).identifier; coordObj = aEvent.changedTouches.identifiedTouch(gDragTouchID); @@ -512,6 +513,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);