A small fix that makes the click handler work for horizontal bar charts

This commit is contained in:
Jelte Fennema 2014-07-29 16:37:15 +02:00
parent a9076b2cc4
commit 127b2bf271

View File

@ -211,7 +211,7 @@ class Morris.Bar extends Morris.Grid
#
# @private
onGridClick: (x, y) =>
index = @hitTest(x)
index = @hitTest(x, y)
@fire 'click', index, @data[index].src, x, y
# hover movement event handler