IIRC there were many tutorials in the early days of React that mentioned this.
Don't attach tooltips to document.body
11–20 of 98 posts
Re: Don't attach tooltips to document.body
#12In fact, in games it also happens with the transforms of objects and has been the cause of a number of performance issues during development of AAA games I've been part of.
Re: Don't attach tooltips to document.body
#13Re: Don't attach tooltips to document.body
#14It would be nice if the browser title text feature didn't flat out suck. Why is there no way to show tooltips immediately rather than having to wait a few seconds. Seems like every website reimplements them because the browser ones are useless.
Re: Don't attach tooltips to document.body
#15It's the same reason that most React apps start with ReactDOM.render( , document.getElementById('app')) instead of ReactDOM.render( , document.body). IIRC there were many tutorials in the early days of React that mentioned this.
Re: Don't attach tooltips to document.body
#16Earlier quoted context omitted.
Don't hold your breath...
Yes it’s more likely say Microsoft gives up on desktop ui and says meh… use electron!
Some other major electron apps are pretty OK.
Re: Don't attach tooltips to document.body
#17It would be nice if the browser title text feature didn't flat out suck. Why is there no way to show tooltips immediately rather than having to wait a few seconds. Seems like every website reimplements them because the browser ones are useless.
And that they don't work on mobile.
Re: Don't attach tooltips to document.body
#18Re: Don't attach tooltips to document.body
#19Earlier quoted context omitted.
And that they don't work on mobile.
Nor do custom tooltips though because the majority of websites and apps fire them on a mouseover event.
Tooltips usually are on links. For example here on HN, hover over "11 minutes ago" in the comment header and it shows the time. Could this be made available to mobile users? Seems tricky. My first thought would be to show it when the user taps and holds. But that also triggers the browsers default context menu for links. So it would make a murky experience.
Re: Don't attach tooltips to document.body
#20Glad all that knowledge is useful in different contexts though.