After debug into the Arcgis js code . I found something useful in the source code.(By the way , Is there any debug version of Arcgis javascript code to be downloaded ? I just get them from the temporary download folder of Browser. and format the code in the http://jsbeautifier.org/. save to local file. etc .. It is a really hard work to be done. Strongly recommend Arcgis open source their javascript lib. Anyone agree with me ?)Ok . Go back to my topic. 🙂 I found when loading arcgis javascript lib , it will determine what kind of browser client it is . you can see this function in the module "esri/sniff".and I found arcgis will add a feature named "esri-poiter" in there . the code is d.add("esri-pointer",navigator.pointerEnabled || navigator.msPointerEnabled);
Since in the IE10 the navigator.msPointerEnabled is true. so the feature test will be true for IE10. but in the other browser is false. This will determine what features will be added to the map.For example in the module "esri/MapNavigationManager" will test this feature.If it is false or undefined. Then will add dbl-click event handler for the map.So for the issue in my last post , The solution I can think out is removing this feature before I create map. The code looks like below.
sn.cache["esri-pointer"] = undefined;
var mapDef = esriUtils.createMap(mapConfig.map.itemId, this.mapDivId, {
mapOptions: {
slider: false,
nav: false,
infoWindow: custInfoWin
}
});
sn represent dojo/has module.Fortunately In my test (IE10: Browser mode :ie10 document mode : standards ). The double click will enlarge the map immediately. So far I didn't found any further issues. So I guess it works.But I am still not sure if it is ok for this solution. I hope someone can give some comments to it. thanks.