Skip to content

Commit

Permalink
#2362 Remove appearance of a tooltip under mouse cursor for Functiona…
Browse files Browse the repository at this point in the history
…l Groups/Salts and Solvents abbreviations (#2400)
  • Loading branch information
AnastasiiaPlyako authored Mar 22, 2023
1 parent 3d864fd commit 9edf75a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/ketcher-react/src/script/editor/tool/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,11 @@ class TemplateTool {
dragCtx,
this.editor
)
this.editor.hover(
this.editor.findItem(event, this.findItems),
null,
event
)
return true
} else if (
ci?.map === 'functionalGroups' &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function showFunctionalGroupsTooltip(editor) {
)
if (closestCollapsibleStructures) {
const sGroup = editor.struct()?.sgroups.get(closestCollapsibleStructures.id)
if (sGroup && !sGroup.data.expanded) {
if (sGroup && !sGroup.data.expanded && sGroup.hovering) {
const groupName = sGroup.data.name
const groupStruct = FunctionalGroup.getFunctionalGroupByName(groupName)
infoPanelData = {
Expand Down

0 comments on commit 9edf75a

Please sign in to comment.