Skip to content

Commit

Permalink
fix hoveredTargets mouseout
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaensler authored and Adrian Haensler committed Feb 6, 2024
1 parent 3251c46 commit e55f96a
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 e55f96a

Please sign in to comment.