a007c66b78
Before the geometry change, we'd rely on the browser to tell us which element was hovered, which meant that when the pointer left the canvas we'd automatically clear the hovered shape. Currently, we don't know whether the pointer is over the canvas or not - so we keep showing the hover indicator for the last shape you had your pointer over. This diff adds an `isHoveringCanvas` prop to the instance state (true, false, or null if the current pointer doesn't support hovering) that we can use to track this and disable the hover indicator appropriately. ![Kapture 2023-10-05 at 12 00 00](https://github.com/tldraw/tldraw/assets/1489520/236b9459-878b-47e2-bcaa-10d245581347) ### Change Type - [x] `minor` — New feature ### Test Plan 1. Create some shapes that go below the UI 2. Move the mouse from the shape to the UI 3. Hover indicator should disappear |
||
---|---|---|
.. | ||
api | ||
src | ||
api-extractor.json | ||
api-report.md | ||
CHANGELOG.md | ||
editor.css | ||
LICENSE | ||
package.json | ||
README.md | ||
setupTests.js | ||
tsconfig.json |
tldraw/tldraw
Benchmark
To run the benchmarks
yarn workspace @tldraw/tldraw benchmark
Or
yarn workspace @tldraw/tldraw benchmark "file_search_string"