From 029c3d76aa6d7e50f13bbc576cae15ac4ea4c7e8 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Wed, 6 Dec 2017 23:30:43 +0100 Subject: [PATCH] chore(context-pad): minor connect / remove tweek * remove does not activate on dragstart * connect does not trigger default drag behavior --- lib/features/context-pad/ContextPadProvider.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/features/context-pad/ContextPadProvider.js b/lib/features/context-pad/ContextPadProvider.js index e9559a0d..bbfbc479 100644 --- a/lib/features/context-pad/ContextPadProvider.js +++ b/lib/features/context-pad/ContextPadProvider.js @@ -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 } } });