mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01:00
A small fix that makes the click handler work for horizontal bar charts
This commit is contained in:
parent
a9076b2cc4
commit
127b2bf271
@ -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 New Issue
Block a user