Path Handler can result in selection of map in IE (Closes #1410), with patch + research from bjorn (hooray!)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@6708 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-03-30 22:03:29 +00:00
parent 136a37bf2f
commit 7a7ab7109b

View File

@@ -321,6 +321,12 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
if (id) {
node.setAttribute('id', id);
}
// IE hack to make elements unselectable, to prevent 'blue flash'
// while dragging vectors; #1410
node.setAttribute('unselectable', 'on', 0);
node.onselectstart = function() { return(false); };
return node;
},