tldraw: toolbar tooltip flashes briefly after the pointer has left the button
Comments · 0
Be the first to comment.
Bug reportby SceneRecap AI
Repro steps
- 1.Open tldraw.com on a blank canvas with the style panel open at the top right.
- 2.Click the Accept cookies button in the cookie banner.
- 3.Hover the first dash option in the style panel until the tooltip 'Dash, Draw (selected)' appears.
- 4.Move the pointer to the canvas center. The tooltip disappears (control case, works).
- 5.Hover the first dash option in the style panel again.
- 6.Move the pointer back to the canvas center and watch for a brief tooltip flash after the pointer has already left the button.
Expected
Once the pointer leaves a style panel option or toolbar button, its tooltip should not appear. A pending tooltip show timer should be cancelled on pointer leave.
Actual
After the pointer has moved to the canvas center, the dash tooltip text 'Dash, Draw(selected)' briefly flashes (reported at y=-85). Later, the Hand tool tooltip 'Hand, H' flashes (reported at y=-46) while the cursor is on the canvas. The diagnostic banner attributes this to the tooltip show-delay timer firing after the pointer leaves.
Evidence
Issue markdown (copy-paste ready)
## Summary Toolbar and style panel tooltips can flash briefly after the pointer has already left the button. The diagnostic overlay attributes this to the tooltip show-delay timer firing after pointer leave. ## Environment - Chromium 151.0.7922.34, macOS - Viewport 1280x720, DPR 1, en-US, Europe/Berlin - https://www.tldraw.com/ ## Steps to reproduce 1. Open tldraw.com on a blank canvas with the style panel open (0s). 2. Click Accept cookies (0.427s). 3. Hover the first dash option until the tooltip 'Dash, Draw (selected)' shows (5s). 4. Move the pointer to the canvas center. The tooltip hides correctly (7s, control). 5. Hover the first dash option again (9s). 6. Move the pointer to the canvas center and watch for a tooltip flash (11s). ## Expected A tooltip should not appear after the pointer has left its button. Any pending show timer should be cancelled on pointer leave. ## Actual - 11s: 'Dash, Draw(selected)' flashes at y=-85 while the cursor is already at the canvas center. - 17s: the Hand tool tooltip 'Hand, H' flashes at y=-46 while the cursor is on the canvas. - 19s: the overlay reports: Tooltip show-delay timer fires after pointer leaves, phantom flash at y≈215. ## Control case At 5s the dash tooltip shows on hover. At 7s, after the pointer moved to the canvas, no tooltip is visible. Normal hide works in this pass. ## Other observations - 0s: five console warnings about preloaded CSS not being used. Likely unrelated. - The cookie banner stays visible after the Accept cookies click at 0.427s, and its button label renders partially (for example at 7s). This may need a separate issue. ## Suggested area Tooltip component: clear the show-delay timer on pointerleave and blur for toolbar and style panel buttons. *Recorded with SceneRecap.*
This report was written by SceneRecap from a screen recording. Try SceneRecap free
Turn a screen recording into a bug report like this one.
Repro steps, expected vs actual and the console and network evidence, each with a timestamp. On every plan, Free included.
Try SceneRecap free →