Skip to content

Commit

Permalink
#6627 – Fix invisible snapping drawings after switching to micro mode
Browse files Browse the repository at this point in the history
  • Loading branch information
svvald committed Mar 7, 2025
1 parent 97aaafc commit 30112a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ketcher-core/src/application/editor/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ export class CoreEditor {
}
this.subscribeEvents();
this.renderersContainer = new RenderersManager({ theme });
this.transientDrawingView = new TransientDrawingView();
this.drawingEntitiesManager = new DrawingEntitiesManager();
this.viewModel = new ViewModel();
this.domEventSetup();
Expand All @@ -144,6 +143,7 @@ export class CoreEditor {
this.setupCopyPasteEvent();
this.canvasOffset = this.canvas.getBoundingClientRect();
this.zoomTool = ZoomTool.initInstance(this.drawingEntitiesManager);
this.transientDrawingView = new TransientDrawingView();
// eslint-disable-next-line @typescript-eslint/no-this-alias
editor = this;
const ketcher = ketcherProvider.getKetcher();
Expand Down
2 changes: 1 addition & 1 deletion packages/ketcher-macromolecules/src/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ function Editor({
<SequenceStartArrow />
<ArrowMarker />
</defs>
<g className="drawn-structures"></g>
<g className="drawn-structures" />
{isHandToolSelected && (
<rect
x={0}
Expand Down

0 comments on commit 30112a8

Please sign in to comment.