2017-09-13 2 views
0

리플릿이 두 번 탭을 인식하지 못함 (두 번 클릭하여 확대/축소가 가능합니다. 개발자 도구를 열고 버그를 보려면 모바일 장치를 선택하십시오.) https://express-tourism.herokuapp.com/
내가 DIV를 다른 전역 래퍼 DIV에 맵핑했기 때문일 수도 있지만 그렇지 않습니다. 콘솔에 '맵'을 입력 했더라도 doubleClickZoom is enabled
직접 두 번 탭 기능을 추가해야합니까, 아니면 누락 되었습니까?전단지 이중 탭이 확대되지 않음

UPDATE : @Baptiste이 맞다 - 나는 사용자 정의 더블 탭 기능을 추가했다 :

var tapped=false 
    $("#map").on("touchstart",function(e){ 
    if(!tapped){ //if tap is not set, set up single tap 
     tapped=setTimeout(function(){ 
      tapped=null 
      //insert things you want to do when single tapped 
     },300); //wait 300ms then run single click code 
    } else { //tapped within 300ms of last tap. double tap 
     clearTimeout(tapped); //stop single tap callback 
     tapped=null 
     //insert things you want to do when double tapped 
     map.zoomIn(1) 
    } 
}); 

답변