@nous-excalidraw/excalidraw 0.18.2-beta.1 → 0.18.3

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.
package/dist/dev/index.js CHANGED
@@ -39743,6 +39743,16 @@ var App = class _App extends React46.Component {
39743
39743
  this.startImageCropping(selectedElements[0]);
39744
39744
  return;
39745
39745
  }
39746
+ if (selectedElements.length === 1 && isFrameLikeElement15(selectedElements[0])) {
39747
+ this.scrollToContent(selectedElements[0], {
39748
+ animate: true,
39749
+ duration: 500,
39750
+ viewportZoomFactor: 0.6,
39751
+ fitToViewport: true,
39752
+ canvasOffsets: this.getEditorUIOffsets()
39753
+ });
39754
+ return;
39755
+ }
39746
39756
  resetCursor(this.interactiveCanvas);
39747
39757
  const selectedGroupIds = getSelectedGroupIds4(this.state);
39748
39758
  if (selectedGroupIds.length > 0) {