mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-02 20:24:22 +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;
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user