I can snap existing elements on sequence flows

Please, is it possible to disable snapping elements on sequence flows? We have big diagrams with lots of connected tasks near each other and the custommer is very confused when dropping a task over a flow and suddenly this flow connects it. I would like to behave it like that:

Thank in advance!

The question for me is: Why don’t you want this behavior when dropping an element on a sequence flow? Do you want to have the connection rendered right through the element without a logical connection?

If you really want to remove the behavior, simply disable the DropOnFlowBehavior.

Please refer to this answer on how to disable a feature. Hint: The behavior itself is indicated as dropOnFlowBehavior module.

Thank you for your response, however when I tried

additionalModules: [
 {
    dropOnFlowBehavior: [ 'value', null ]
  }
]

then I got this error:
image

Do you have any other custom modules included?

Even if I have only dropOnFlowBehavior disabled, the error still occurs when moving a task over flow…

new BpmnModeler({
    container: canvas,
    additionalModules: [
        {
            dropOnFlowBehavior: [ 'value', null ]
        }
    ],
});

That’s probably because you’re trying to drop the task on top of the sequence flow, considering that as its new parent. That won’t work though, so seems like you will have to update the drop on flow behavior to have it as you wish. Disabling alone won’t work.