Skip to content

Commit

Permalink
#5970 - Unable to connect monomer to molecule in snake mode (#6060) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rrodionov91 authored Dec 6, 2024
1 parent 4431efa commit 2eb27dd
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ export class SnakeModePolymerBondRenderer extends BaseRenderer {
.attr('y1', this.scaledPosition.startPosition.y)
.attr('x2', this.scaledPosition.endPosition.x)
.attr('y2', this.scaledPosition.endPosition.y)
.attr('pointer-events', 'stroke');
.attr('pointer-events', this.polymerBond.finished ? 'stroke' : 'none');

return this.bodyElement;
}
Expand All @@ -745,10 +745,10 @@ export class SnakeModePolymerBondRenderer extends BaseRenderer {
this.editorEvents.mouseLeavePolymerBond.dispatch(event);
this.editorEvents.mouseLeaveDrawingEntity.dispatch(event);
})
.attr('pointer-events', 'stroke') as never as D3SvgElementSelection<
SVGGElement,
void
>;
.attr(
'pointer-events',
this.polymerBond.finished ? 'stroke' : 'none',
) as never as D3SvgElementSelection<SVGGElement, void>;
}

public show(_theme?: unknown, force = false): void {
Expand Down

0 comments on commit 2eb27dd

Please sign in to comment.