What happened?
As noted on Discord:
This lovely line of tldraw logic makes it so one can't have an onClick handler on a Shape without interfering with pointerdown+drag to move the shape when it is not selected. Annoying behavior so probably an unintended side-effect? Fix/workaround?
Without having dug into the reasons here, my cursory reaction would be that we should be calling the shape maybe and seeing if it returns true/false? Not sure.
How can we reproduce the bug?
- Create a custom shape with an onClick handler.
- Make sure the shape is not selected
- Attempt the drag the shape
Expected
Actual
- onClick is triggered instead
What browsers are you seeing the problem on?
No response
Where did this happen?
The developer package
Contact Details
No response
Code of Conduct
What happened?
As noted on Discord:
Without having dug into the reasons here, my cursory reaction would be that we should be calling the shape maybe and seeing if it returns true/false? Not sure.
How can we reproduce the bug?
Expected
Actual
What browsers are you seeing the problem on?
No response
Where did this happen?
The developer package
Contact Details
No response
Code of Conduct