d3pie icon indicating copy to clipboard operation
d3pie copied to clipboard

tooltips not hiding on mouseout with IE 11.0.9600.17843

Open irishkush opened this issue 9 years ago • 6 comments

Using the most current version of IE and d3pie, please see screenshot. Tooltips continue displaying when moving mouse over each path in pie, even at a slow speed. Chrome and Firefox don't exhibit this behavior. Wish I could abandon IE but...

ietooltipbug

irishkush avatar Jul 08 '15 14:07 irishkush

Thanks @irishkush.

benkeen avatar Jul 08 '15 15:07 benkeen

Ben, it seems that the issue is occurring within the addSegmentEventHanders function of your code, specifically the event "mousemove", where it is calling the moveTooltip function.

I noticed that in IE when you move the cursor across a segment, it seems to lose focus, which in turn might prevent the "mouseout" event from bubbling up?

My very crude workaround was to comment out the moveTooltip function where "mousemove" event handler is being attached within addSegmentEventHandlers. This kills the tooltip movement functionality, but at least the tooltips respond to the mouseout event, where hideTooltip is called.

HTH! Have a good weekend.

irishkush avatar Jul 10 '15 21:07 irishkush

Thanks, @irishkush! Yeah, that helps a lot.

benkeen avatar Jul 10 '15 22:07 benkeen

There is a fix for this in this post: https://github.com/benkeen/d3pie/issues/43

maeeast avatar May 31 '17 13:05 maeeast

Hi guys any solution for this. I got the same issue on EDGE

quanglefed avatar May 29 '18 12:05 quanglefed

https://github.com/heppa/d3pie

I fixed this issue in my fork.

It was related to the moveTooltip not working correctly, and IE and EDGE have a strange behaviour firing the mousemove event again later on when another mousemove is fired apparently.

As soon as somebody is merging PR again, I will be happy to submit one to merge it with this repository.

heppa avatar Jul 03 '19 14:07 heppa