Skip to content

Commit

Permalink
fix(Canvas) mouseout target is broken for hoveredTargets (#9656)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaensler committed Feb 8, 2024
1 parent 3251c46 commit 8318f69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mixins/canvas_events.mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@

var _this = this;
this._hoveredTargets.forEach(function(_target){
_this.fire('mouse:out', { target: target, e: e });
_target && target.fire('mouseout', { e: e });
_this.fire('mouse:out', { target: _target, e: e });
_target && _target.fire('mouseout', { e: e });
});
this._hoveredTargets = [];
},
Expand Down

0 comments on commit 8318f69

Please sign in to comment.