tldraw icon indicating copy to clipboard operation
tldraw copied to clipboard

[Bug]: Sticker Example - Stickers don't stick

Open JohnEdChristensen opened this issue 2 weeks ago • 1 comments

What happened?

In the stickers example, stickers don't to stick to any objects.

It looks like when stickers are placed (onTranslateEnd), and look for a shape to attach to (getShapeAtPoint), they find their own ID, and then bind to themselves. Filtering the sticker's own shape out in getShapeAtPoint fixes the issue, and restores stickiness to stickers.

How can we reproduce the bug?

No response

What browsers are you seeing the problem on?

Firefox, Chrome

Contact Details

[email protected]

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

JohnEdChristensen avatar Jun 18 '24 18:06 JohnEdChristensen