Skip to content

Commit

Permalink
Merge pull request #4033 from epam/4014-macro-monomers-attachment-poi…
Browse files Browse the repository at this point in the history
…nts-cannot-be-connected-by-a-bond-in-firefox-browser

Backmerge: #4014 - Macro: Monomers (attachment points) cannot be connected by a bond in Firefox browser
  • Loading branch information
ilya-asiyuk-epam authored Feb 6, 2024
2 parents 34555ea + b4ad47d commit 2511f0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ketcher-core/src/application/editor/tools/Bond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class PolymerBond implements BaseTool {
}

public mouseUpAttachmentPoint(event) {
const renderer = event.toElement.__data__;
const renderer = event.target.__data__;
const isFirstMonomerHovered =
renderer === this.bondRenderer?.polymerBond?.firstMonomer?.renderer;

Expand Down Expand Up @@ -309,7 +309,7 @@ class PolymerBond implements BaseTool {
}

public mouseUpMonomer(event) {
const renderer = event.toElement.__data__;
const renderer = event.target.__data__;
const isFirstMonomerHovered =
renderer === this.bondRenderer?.polymerBond?.firstMonomer?.renderer;

Expand Down

0 comments on commit 2511f0c

Please sign in to comment.