Skip to content
Bug reportDec 2, 2026· 0:25· 13 views

tldraw: toolbar tooltip flashes briefly after the pointer has left the button

0:25 total

Comments · 0

Be the first to comment.

Bug reportby SceneRecap AI

lowTooltip component (show-delay timer handling on pointerleave) used by the toolbar and style panel buttons
os: macOSdpr: 1url: https://www.tldraw.com/locale: en-USbrowser: Chromium 151.0.7922.34timezone: Europe/Berlinviewport: 1280x720

Repro steps

  1. 1.Open tldraw.com on a blank canvas with the style panel open at the top right.
  2. 2.Click the Accept cookies button in the cookie banner.
  3. 3.Hover the first dash option in the style panel until the tooltip 'Dash, Draw (selected)' appears.
  4. 4.Move the pointer to the canvas center. The tooltip disappears (control case, works).
  5. 5.Hover the first dash option in the style panel again.
  6. 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

visualControl case: the tooltip 'Dash, Draw (selected)' shows while the pointer is on the first dash option.
visualControl case: the pointer is at the canvas center and no tooltip is visible. The tooltip hid correctly.
visualThe pointer is back on the first dash option before it moves away.
visualThe pointer is at the canvas center. A red banner reads: Flash detected: 'Dash, Draw(selected)Dash, Draw(selecte' at y=-85, cursor already at canvas center.
visualThe flash banner has cleared and the pointer is on the canvas.
visualA red banner reads: Hand tool flash: 'Hand, HHand, H' at y=-46, cursor at canvas. The pointer is at the canvas center, not on the toolbar.
visualA second banner reads: Tooltip show-delay timer fires after pointer leaves, phantom flash at y≈215. It stays visible through 23s.
consoleFive warnings say preloaded CSS resources were not used within a few seconds of load (TlaFileError, file, SneakySetDocumentTitle, TlaSidebarLayout, TlaEditorWrapper). These are likely unrelated to the tooltip issue.
visualSide observation: the cookie banner is still visible after the Accept cookies click at 0.427s, and its button label renders partially ('Acc', 'all').
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 →
tldraw: toolbar tooltip flashes briefly after the pointer has left the button · SceneRecap