[experiment] paste: show little puff when pasting to denote something happened (#2787)
@steveruizok go ahead and take a look at the animation css and tweak as you like. @SomeHats and @steveruizok this is an experiment in that this is prbly the wrong way to approach it? But I'd be curious to learn if there was a more proper route here https://github.com/tldraw/tldraw/assets/469604/40a7029c-f4e8-4f2a-914e-8e6f264be4c7 ### Change Type - [x] `patch` — Bug fix ### Release Notes - UI: add a little 'puff' when something is pasted to tell that something has happened. --------- Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
This commit is contained in:
parent
fd4b5c6291
commit
f5f9da4f64
2 changed files with 16 additions and 5 deletions
|
@ -356,11 +356,9 @@ function ShapesToDisplay() {
|
|||
|
||||
function SelectedIdIndicators() {
|
||||
const editor = useEditor()
|
||||
const selectedShapeIds = useValue(
|
||||
'selectedShapeIds',
|
||||
() => editor.getCurrentPageState().selectedShapeIds,
|
||||
[editor]
|
||||
)
|
||||
const selectedShapeIds = useValue('selectedShapeIds', () => editor.getSelectedShapeIds(), [
|
||||
editor,
|
||||
])
|
||||
const shouldDisplay = useValue(
|
||||
'should display selected ids',
|
||||
() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue