Browse Source

Update SelectComponent.js

"onOut" does not fully clear the internal state for hovered elements.
This can result in drawing a previously hovered element after mouseleave.
pull/2907/head
neon12345 6 years ago
committed by GitHub
parent
commit
bc10a5201a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/commands/view/SelectComponent.js

2
src/commands/view/SelectComponent.js

@ -204,6 +204,8 @@ export default {
onOut() {
this.currentDoc = null;
this.em.setHovered(0);
this.elHovered = undefined;
this.updateToolsLocal();
this.canvas.getFrames().forEach(frame => {
const { view } = frame;
const el = view && view.getToolsEl();

Loading…
Cancel
Save