mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-09-21 10:41:32 +02: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
|
# @private
|
||||||
onGridClick: (x, y) =>
|
onGridClick: (x, y) =>
|
||||||
index = @hitTest(x)
|
index = @hitTest(x, y)
|
||||||
@fire 'click', index, @data[index].src, x, y
|
@fire 'click', index, @data[index].src, x, y
|
||||||
|
|
||||||
# hover movement event handler
|
# hover movement event handler
|
||||||
|
Loading…
Reference in New Issue
Block a user