X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph.js;h=f11fa7454261de20d2720f5cf7b5d0f166b24eb9;hb=34655aba0589dc5f9bdc1f03319d4e7bd9dcfff6;hp=6e4d2cebcf77c6bb88c0c45e7cf0a507eed4f7e9;hpb=b616fad11c12b9fff811b64ed6ceb97ea3700640;p=dygraphs.git diff --git a/dygraph.js b/dygraph.js index 6e4d2ce..f11fa74 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1019,8 +1019,8 @@ Dygraph.prototype.createInterface_ = function() { // 2. e.relatedTarget is outside the chart var target = e.target || e.fromElement; var relatedTarget = e.relatedTarget || e.toElement; - if (Dygraph.isElementContainedBy(target, dygraph.graphDiv) && - !Dygraph.isElementContainedBy(relatedTarget, dygraph.graphDiv)) { + if (Dygraph.isNodeContainedBy(target, dygraph.graphDiv) && + !Dygraph.isNodeContainedBy(relatedTarget, dygraph.graphDiv)) { dygraph.mouseOut_(e); } }; @@ -1988,7 +1988,7 @@ Dygraph.prototype.updateSelection_ = function(opt_animFraction) { ctx.strokeStyle = color; ctx.fillStyle = color; callback(this.g, pt.name, ctx, canvasx, pt.canvasy, - color, circleSize,pt.idx); + color, circleSize, pt.idx); } ctx.restore();