mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-16 18:52:57 +00:00
Lasso only nodes for now (fixes #734)
Given the (lack of) operations available on mixed node/way selections, this seems just as good as selecting contained ways as well.
This commit is contained in:
@@ -49,7 +49,9 @@ iD.behavior.Lasso = function(context) {
|
||||
.on('mouseup.lasso', null);
|
||||
|
||||
if (d3.event.clientX !== pos[0] || d3.event.clientY !== pos[1]) {
|
||||
var selected = context.graph().intersects(extent);
|
||||
var selected = context.graph().intersects(extent).filter(function (entity) {
|
||||
return entity.type === 'node';
|
||||
});
|
||||
|
||||
if (selected.length) {
|
||||
context.enter(iD.modes.Select(context, _.pluck(selected, 'id')));
|
||||
|
||||
Reference in New Issue
Block a user