nomic-ai / deepscatter

Zoomable, animated scatterplots in the browser that scales over a billion points

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gracefully remove old tooltips

cabreraalex opened this issue · comments

I'm not sure if this is expected behavior, but the tooltip currently sticks when you stop hovering on a point which is a bit distracting. I see the behavior on Firefox and Chrome on the observable notebook and https://all-of-us.benschmidt.org/

Screen Shot 2022-04-20 at 10 45 17

I’ve actually seen this behavior as well and i have something on localhost that fixed it for me; I’ll open a PR for that when i get back to my computer. But first, can you check https://situating.us/explore and see if you also have the problem there? (That site is built on deepscatter but should incorporate my fix.)

Yup looks great! Thanks a ton!

Thanks @cabreraalex for the suggestion. If @thatandromeda makes a pull request I will accept. (@thatandromeda , is that site now public?)

One challenge here is that sometimes it may be desirable to put something (a link, say) into the tooltip that wants mouse action. So in an ideal world for me the tooltip would do something like remain for 2 seconds, and then take one-to-two seconds fading to zero opacity before vanishing: and that fadeout would end if the cursor entered the tooltip div. I will leave this issue open until that's possible.