gionkunz / chartist-plugin-threshold

Threshold Plugin for Chartist.js
Do What The F*ck You Want To Public License
29 stars 38 forks source link

Cloned line path appears 'over' original line path #19

Open henrikr opened 5 years ago

henrikr commented 5 years ago

Problem The original line path element naturally appears before the cloned element.

This causes problems for other plugins that perhaps have added event listeners (mouseover, mouseout, etc) to the original element as these events will not be triggered by the cloned element, for a couple of reasons:

Solutions One solution is to clone the events of the original node.

However, since the cloned node is purely presentational, perhaps it would be better to either disable mouse / pointer events of the cloned node or simply insert it first before the original node.