From: etimberg Date: Sun, 23 Oct 2016 03:12:39 +0000 (-0400) Subject: Fix bug in 'y' tooltip mode X-Git-Tag: v2.4.0~1^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=274aa290ca69f38aac5fd1a5fb55cc5043ea5d8c;p=thirdparty%2FChart.js.git Fix bug in 'y' tooltip mode --- diff --git a/src/core/core.interaction.js b/src/core/core.interaction.js index 2e680bea5..2d7b99597 100644 --- a/src/core/core.interaction.js +++ b/src/core/core.interaction.js @@ -260,7 +260,7 @@ module.exports = function(Chart) { var position = helpers.getRelativePosition(e, chart.chart); var items = []; parseVisibleItems(chart, function(element) { - if (element.inYRange(position.x)) { + if (element.inYRange(position.y)) { items.push(element); } });