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

View File

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