Skip to content

Commit

Permalink
#2402 - Fix cursor-following atom to hide when DnD
Browse files Browse the repository at this point in the history
  • Loading branch information
yuleicul committed Apr 10, 2023
1 parent cbc300d commit dd1ab97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ketcher-react/src/script/editor/tool/atom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ class AtomTool {
}

mousemove(event) {
this.editor.hoverIcon.show()
const rnd = this.editor.render

if (!this.dragCtx || !this.dragCtx.item) {
this.editor.hoverIcon.show()
this.editor.hoverIcon.updatePosition()

this.editor.hover(
Expand All @@ -147,6 +147,8 @@ class AtomTool {
event
)
return
} else {
this.editor.hoverIcon.hide()
}

const dragCtx = this.dragCtx
Expand Down

0 comments on commit dd1ab97

Please sign in to comment.