Fix wrong mouseleave trigger for Konva.Stage

This commit is contained in:
Anton Lavrenov
2021-02-19 13:01:23 -05:00
parent 9e4bf65d70
commit 015707c455
5 changed files with 80 additions and 1343 deletions

View File

@@ -69,7 +69,7 @@ var STAGE = 'Stage',
MOUSEDOWN,
MOUSEMOVE,
MOUSEUP,
MOUSEOUT,
MOUSELEAVE,
TOUCHSTART,
TOUCHMOVE,
TOUCHEND,
@@ -436,7 +436,7 @@ export class Stage extends Container<Layer> {
this._fire(CONTENT_MOUSEOVER, { evt: evt });
this._fire(MOUSEOVER, { evt: evt, target: this, currentTarget: this });
}
_mouseout(evt) {
_mouseleave(evt) {
this.setPointersPositions(evt);
var targetShape = this.targetShape?.getStage() ? this.targetShape : null;