mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-21 07:46:58 +02:00
Touch targets can be keyed on entity.id instead of osmEntity.key
to avoid excessive exit/enter flickering
This commit is contained in:
@@ -174,7 +174,7 @@ export function svgVertices(projection, context) {
|
||||
var debugClass = 'pink';
|
||||
var targets = selection.selectAll('.target')
|
||||
.filter(filter)
|
||||
.data(entities, osmEntity.key);
|
||||
.data(entities, function key(d) { return d.id; });
|
||||
|
||||
// exit
|
||||
targets.exit()
|
||||
|
||||
Reference in New Issue
Block a user