chore(context-pad): minor connect / remove tweek

* remove does not activate on dragstart
* connect does not trigger default drag behavior
This commit is contained in:
Nico Rehwaldt 2017-12-06 23:30:43 +01:00
parent e34ca2feb2
commit 029c3d76aa
1 changed files with 5 additions and 2 deletions

View File

@ -87,6 +87,10 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
var businessObject = element.businessObject;
function startConnect(event, element, autoActivate) {
// prevent dragging of connection symbol
event.preventDefault();
connect.start(event, element, autoActivate);
}
@ -348,8 +352,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
className: 'bpmn-icon-trash',
title: translate('Remove'),
action: {
click: removeElement,
dragstart: removeElement
click: removeElement
}
}
});