pixeline
pixeline

Reputation: 17984

kineticjs - mouseover inaccurate

I'm building a polar graph visualisation that needs tooltips over its arcs. It works, except that the mouseover is imprecise: it is triggered by mousing over places with no shape, and does not get triggered when it should.

You can see it for yourself via my prototype on jsfiddle.

Any idea what i could do to fix that?

UPDATE

In fact, if i fill() the arcs, it shows the area that is really taking the event. It's perfectly responsive, although i guess i now need to find a way to make it not take into account the fill...

Upvotes: 0

Views: 368

Answers (2)

Greg
Greg

Reputation: 21

You are drawing a line and thus you will only get an event in the middle of the line. Use instead shape

Upvotes: 2

pixeline
pixeline

Reputation: 17984

Filling the arcs show the real area (see jsfiddle)). So it's completely accurate, though not the effect i need to achieve. But this question is solved °-)

Upvotes: 0

Related Questions