- From: Noam Rosenthal <notifications@github.com>
- Date: Sun, 13 Dec 2020 23:03:24 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 14 December 2020 07:03:36 UTC
Currently there is no way to cancel default desktop tooltips based on the `title` attribute, apart from removing the title attribute on mouseover and reinstating it on mouseout. This is common practice, for example in libraries that override tooltip behavior, like bootstrap: https://github.com/codemix/bootstrap-tooltip/blob/2ced9925ef62264ba6c5d42cbc2e6502348ca147/index.js#L288 Removing this churn can help reduce style thrashing in performance-sensitive areas like hovering. The idea is that calling `preventDefault()` during a non-passive `mouseover` event would signal the user agent to avoid showing any native tooltip. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/934
Received on Monday, 14 December 2020 07:03:36 UTC