Skip to content

Commit

Permalink
tweak event
Browse files Browse the repository at this point in the history
  • Loading branch information
100pah committed Nov 1, 2016
1 parent 74611cb commit 3919437
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ define(function(require) {
// When mousemove event triggered on ec tooltip, target is not zr painter.dom, and
// offsetX/Y is relative to e.target, where the calculation of zrX/Y via offsetX/Y
// is too complex. So css-transfrom dont support in this case temporarily.
if (el !== e.target) {

if (!e.currentTarget || el !== e.currentTarget) {
defaultGetZrXY(el, e, out);
}
// Caution: In FireFox, layerX/layerY Mouse position relative to the closest positioned
Expand Down

0 comments on commit 3919437

Please sign in to comment.