Commit 4ee02326 authored by Randall Leeds's avatar Randall Leeds

fix heatmap hit detection for non-Webkit

parent 68cb9683
......@@ -43,7 +43,8 @@ class Hypothesis extends Annotator
this
onHeatmapClick: (event) =>
target = d3.bisect(@heatmap.index, event.offsetY)-1
y = event.clientY - @wrapper.offset().top
target = d3.bisect(@heatmap.index, y)-1
annotations = @heatmap.buckets[target]
if annotations?.length
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment