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
  • Loading branch information
AnastasiiaPlyako committed Mar 21, 2023
1 parent 6ab5a3a commit ab2d957
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 ab2d957

Please sign in to comment.