benkeen / d3pie

A configurable pie chart lib and generator built on d3.js
MIT License
371 stars 203 forks source link

tooltips not hiding on mouseout with IE 11.0.9600.17843 #86

Open irishkush opened 9 years ago

irishkush commented 9 years ago

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

benkeen commented 9 years ago

Thanks @irishkush.

irishkush commented 9 years ago

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.

benkeen commented 9 years ago

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

maeeast commented 7 years ago

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

quanglefed commented 6 years ago

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

heppa commented 5 years ago

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.