davidgohel / ggiraph

make 'ggplot' graphics interactive
https://davidgohel.github.io/ggiraph
793 stars 73 forks source link

tooltip on mobile #300

Open xtimbeau opened 3 months ago

xtimbeau commented 3 months ago

Hi, using tooltip on mobile leads to a strange behaviour, may be dus to an incorrect use of ggiraph. The tooltip apperas when you "click" for the first time, but is not holding the second ar further time you click on an active zone (it falshes briefly and disappears). I have tested that on an iphone 17.5.1 on Safari and Edge and Chrome. I was not able to make tooltip work on mobile mode in developper mode on Edge. It is working fine on desktop (so far as I have tested, Edge, Safari, Windows, MacOS).

You have an example of such a behaviour there : example

Thanks for this fantastic package !

theobroekman commented 4 days ago

I encounter the same problem. After reloading the page, the tooltip for the first selected point again appears as it should, but the next selected points fade away very fast. Reload page, and so on,

theobroekman commented 3 days ago

I tried a bit with the delay parameters. These values give in my case a workable solution: opts_tooltip(delay_mouseover = 10,delay_mouseout = 3000)