stacked-gantt icon indicating copy to clipboard operation
stacked-gantt copied to clipboard

Show tooltip on click not mouseover

Open michalchrzastek opened this issue 3 years ago • 0 comments

Hello Bruno,

My gantt is full of short duration activities, when moving mouse through or attempt to scroll horizontally, all tooltips show/hide rapidly. I'd like to test if the overall experience is any better when the tooltip would not show on "mouseover" but rather on "click".

I have adjusted my local file "dist/jquery.stacked-gantt.min.js" and replaced 4 x "mouseover" to "click" f.borderColor=i,d.css(f),d.mouseover(cn(d)), ,t.mouseover(cn(d)),t.mouseout append(d)};t.mouseover(u)}function hover"),n.mouseover(t))},50

Now the tooltips show only on click, but they don't always hide properly.

The tooltip is generated several times, one of top of another, so need to move mouse few times on the tooltip, to hide each instance. On the 1st click on an activity, the tooltip is generated once, then hides away on mouse move. On 2nd click on the same activity the tooltip is generated 2 times On 3rd click on the same activity, the tooltip is generated 4 times On 4th click on the same activity, the tooltip is generated 10+ times On 5th click on the same activity, the tooltip is generated 30+ times etc,

Are you able to advise on possible solution, to prevent the tooltip generating more than once on top of each other?

Thank you

michalchrzastek avatar Nov 03 '21 08:11 michalchrzastek