mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-08 23:25:04 +00:00
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:
parent
e34ca2feb2
commit
029c3d76aa
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user