deepscatter icon indicating copy to clipboard operation
deepscatter copied to clipboard

Gracefully remove old tooltips

Open cabreraalex opened this issue 2 years ago • 3 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

cabreraalex avatar Apr 20 '22 14:04 cabreraalex

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.)

thatandromeda avatar Apr 20 '22 14:04 thatandromeda

Yup looks great! Thanks a ton!

cabreraalex avatar Apr 20 '22 14:04 cabreraalex

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.

bmschmidt avatar Apr 20 '22 20:04 bmschmidt