From afbc177a6b2c0faa362e47f8a82961da4b651d1d Mon Sep 17 00:00:00 2001 From: Konstantin Levin Date: Mon, 12 Dec 2022 13:56:56 +0100 Subject: [PATCH] #1822: fix hover icon --- packages/ketcher-react/src/script/editor/tool/atom.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/ketcher-react/src/script/editor/tool/atom.ts b/packages/ketcher-react/src/script/editor/tool/atom.ts index 794bc58d53..48e91ee19f 100644 --- a/packages/ketcher-react/src/script/editor/tool/atom.ts +++ b/packages/ketcher-react/src/script/editor/tool/atom.ts @@ -134,6 +134,14 @@ class AtomTool { } } + mouseleave() { + this.editor.hoverIcon.hide() + } + + mouseover() { + this.editor.hoverIcon.show() + } + mousemove(event) { const rnd = this.editor.render const { layerX, layerY } = event