-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(canvas_events): mouseout
bug
#8011
Conversation
Code Coverage Summary
|
bugfix are always fine |
}); | ||
this.fire('mouse:out', { target: _target, e: e }); | ||
_target && _target.fire('mouseout', { e: e }); | ||
}, this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this was probably a distraction/typo as you say, we should name those things better.
I would call
https://github.com/fabricjs/fabric.js/pull/8011/files#diff-6011216a37d34f94eb2a73dbf67b8c7f58c35b42ba7e882da0aaac6e27225f28R144
as hoveredTarget, and _target hoveredNestedTarget.
What do you think?
HoveredTarget or target or the same IMO
_target -> subTarget??
בתאריך שבת, 18 ביוני 2022, 17:09, מאת Andrea Bogazzi <
***@***.***>:
… ***@***.**** commented on this pull request.
------------------------------
In src/mixins/canvas_events.mixin.js
<#8011 (comment)>:
> 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);
since this was probably a distraction/typo as you say, we should name
those things better.
I would call
https://github.com/fabricjs/fabric.js/pull/8011/files#diff-6011216a37d34f94eb2a73dbf67b8c7f58c35b42ba7e882da0aaac6e27225f28R144
as hoveredTarget, and _target hoveredNestedTarget.
What do you think?
—
Reply to this email directly, view it on GitHub
<#8011 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIGAW4NXP6GEV27EYBM64LTVPXKDDANCNFSM5ZEI7JLQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Whatever that doesn't differ from a dash. |
Everywhere else it's called subTarget... |
Code Coverage Summary
|
I have encountered a severe bug so I've allowed myself to PR disregarding the PR lockdown.
It's a simple fix, the bug seems to be a typo.
https://github.com/fabricjs/fabric.js/blame/master/src/mixins/canvas_events.mixin.js#L151