mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Fix vertex hovering (targets are GeoJSON now)
This commit is contained in:
@@ -406,9 +406,10 @@ export function svgVertices(projection, context) {
|
||||
|
||||
_prevHover = _currHover || {};
|
||||
_currHoverTarget = target;
|
||||
var entity = target && target.properties && target.properties.entity;
|
||||
|
||||
if (_currHoverTarget) {
|
||||
_currHover = getSiblingAndChildVertices([_currHoverTarget.id], graph, wireframe, zoom);
|
||||
if (entity) {
|
||||
_currHover = getSiblingAndChildVertices([entity.id], graph, wireframe, zoom);
|
||||
} else {
|
||||
_currHover = {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user