Lock Modeler canvas

Hello

I would like to fix the canvas position so it can not be accidentally changed while dragging some components or by using the hand tool.

The idea is to have the position fixed as the viewer does.

Is this possible ?

I am using bpmn version v0.20.6 (just updated)

Thank you !

Hi,

you can simply override the modules that implement these features with empty modules:

var modeler = new BpmnModeler({
  // ...
  additionalModules: [
    {
      moveCanvas: [ 'value', '' ],
      zoomScroll: [ 'value', '' ]
    }
  ]
});

Cheers

That’s a great idea,

Thank you !