This commit fixes this: once a feature's been selected the "pointer" cursor is

always used when going over it. r=crschmidt (closes #1217)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5909 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2008-01-27 14:26:28 +00:00
parent 5f3e05bb5e
commit bd07adbb10
3 changed files with 7 additions and 4 deletions

View File

@@ -241,7 +241,7 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
node.setAttributeNS(null, "pointer-events", style.pointerEvents);
}
if (style.cursor) {
if (style.cursor != null) {
node.setAttributeNS(null, "cursor", style.cursor);
}
return node;

View File

@@ -246,7 +246,7 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
stroke.setAttribute("endcap", !style.strokeLinecap || style.strokeLinecap == 'butt' ? 'flat' : style.strokeLinecap);
}
if (style.cursor) {
if (style.cursor != null) {
node.style.cursor = style.cursor;
}
return node;