mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-25 01:24:05 +02:00
Suppress radial menu when selecting from selection list
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
iD.ui.SelectionList = function(context, selectedIDs) {
|
||||
|
||||
function selectEntity(entity) {
|
||||
context.enter(iD.modes.Select(context, [entity.id]).suppressMenu(true));
|
||||
}
|
||||
|
||||
|
||||
function selectionList(selection) {
|
||||
selection.classed('selection-list-pane', true);
|
||||
|
||||
@@ -28,9 +33,7 @@ iD.ui.SelectionList = function(context, selectedIDs) {
|
||||
|
||||
var enter = items.enter().append('button')
|
||||
.attr('class', 'feature-list-item')
|
||||
.on('click', function(entity) {
|
||||
context.enter(iD.modes.Select(context, [entity.id]));
|
||||
});
|
||||
.on('click', selectEntity);
|
||||
|
||||
// Enter
|
||||
|
||||
|
||||
Reference in New Issue
Block a user