title: google maps javascript api long press behaviour is broken down by zoom pinch
body: <p>I know that there is no "long press" event in google maps. But i somehow simulated that behaviour using a combination of other events. After pressing some time, a context menu appears with options. However, in devices with support of pinch to zoom such as tablets, after i zoom in or out using two fingers, when i stop touching to device, the menu unexpectedly appears. It is likely that two concurrent touch events disturbs the other one. Anyone with suggestions is appreciated.  Here is the relevant code : </p>
  
  <pre><code>        var contextMenuOptions={};
          contextMenuOptions.classNames={menu:'context_menu', menuSeparator:'context_menu_separator'};
  
          var menuItems=[];
          menuItems.push({className:'context_menu_item', eventName:'start_click', label:'From here'});
          menuItems.push({className:'context_menu_item', eventName:'end_click', label:'To here'});                
          menuItems.push({className:'context_menu_item', eventName:'from_current_loc', label:'From my location'});
          menuItems.push({className:'context_menu_item', eventName:'to_current_loc', label:'To my location'});            
  //      menuItems.push({className:'context_menu_item', eventName:'center_map_click', label:'Center map here'});
          contextMenuOptions.menuItems=menuItems; 
  
          //  create the ContextMenu object
          var contextMenu=new ContextMenu(map, contextMenuOptions);
  
            google.maps.event.addListener(map, "mousedown", function(event){
                  contextMenu.hide();
                  sayac = setTimeout(function(){ contextMenu.show(event.latLng); }, 500);                 
            });  
            // main refers to map container
            document.getElementById("main").addEventListener("touchend",function(){ clearTimeout(sayac); });
            document.getElementById("main").addEventListener("touchmove", function(){ clearTimeout(sayac); });
            document.getElementById("main").addEventListener("click",function(e){ e.preventDefault(); });
  </code></pre>