- From: madprops <notifications@github.com>
- Date: Thu, 22 Jun 2023 17:15:19 -0700
- To: w3c/uievents <uievents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/uievents/issues/350@github.com>
I'm not sure if this is the right repo, but it is a pointer event. I want to propose the addition of 1 or 2 events. These are regarding the native tooltips that use the title attribute when you hover an element. I think an event is needed to build a title dynamically without causing needless processing. In my case I build "timeago", relative times to dates in tooltips, so these have to be calculated every time the title is show. Think "2 minutes ago". Right now the only way is listening on mouseover of body and changing the title before it pops up. This triggers on every element as you move the mouse, lots of events. Best I can do is use a debouncer to minimize the processing. If a tooltip event was introduced, I could use it to build the title efficiently every time. Since it will only be triggered when a tooltip is going to be shown and nothing more. As you can see other people are looking for it: https://stackoverflow.com/questions/47314675/is-there-an-event-for-when-the-title-attribute-shows-the-tooltip Right now I decided to remove dynamic tooltips from my application simply because I'm concerned about the cpu processing happening on basically any mouse movement. If a tooltip or similar event existed I would have no trouble in using it, it would be clean and efficient. Either before-tooltip, or after-tooltip, or both. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/uievents/issues/350 You are receiving this because you are subscribed to this thread. Message ID: <w3c/uievents/issues/350@github.com>
Received on Friday, 23 June 2023 00:15:25 UTC