mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-13 07:11:12 +01:00
A small fix that makes the click handler work for horizontal bar charts
This commit is contained in:
parent
a9076b2cc4
commit
127b2bf271
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue