fix mouseleave on stage. close #811

This commit is contained in:
Anton Lavrenov
2019-12-18 13:16:03 -05:00
parent 7787dfdf14
commit 961e61c1bc
5 changed files with 73 additions and 5 deletions

View File

@@ -443,6 +443,7 @@ export class Stage extends Container<BaseLayer> {
if (targetShape && eventsEnabled) {
targetShape._fireAndBubble(MOUSEOUT, { evt: evt });
targetShape._fireAndBubble(MOUSELEAVE, { evt: evt });
this._fire(MOUSELEAVE, { evt: evt, target: this, currentTarget: this });
this.targetShape = null;
} else if (eventsEnabled) {
this._fire(MOUSELEAVE, {