camunda-bpmn-js 3.1.2 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10280,9 +10280,9 @@
10280
10280
 
10281
10281
  const viewport = this._viewport = createGroup(svg, 'viewport');
10282
10282
 
10283
- // debounce canvas.viewbox.changed events
10284
- // for smoother diagram interaction
10285
- if (config.deferUpdate !== false) {
10283
+ // debounce canvas.viewbox.changed events when deferUpdate is set
10284
+ // to help with potential performance issues
10285
+ if (config.deferUpdate) {
10286
10286
  this._viewboxChanged = debounce(bind$2(this._viewboxChanged, this), 300);
10287
10287
  }
10288
10288
 
@@ -11306,6 +11306,11 @@
11306
11306
  this.setRootElement(rootElement);
11307
11307
  }
11308
11308
 
11309
+ // element is rootElement, do not change viewport
11310
+ if (rootElement === element) {
11311
+ return;
11312
+ }
11313
+
11309
11314
  if (!padding) {
11310
11315
  padding = {};
11311
11316
  }