tldraw / tldraw

SDK for creating whiteboards and canvas experiences on the web.
https://tldraw.dev
Other
33.86k stars 2.03k forks source link

[Bug]: The mouse control doesn't switch back to select once middle button is used for pan #3733

Closed mostaphaRoudsari closed 3 weeks ago

mostaphaRoudsari commented 1 month ago

What happened?

I was playing around with the camera options and the change in the wheel behavior which is excellent! I notice that the cursor stays as a hand if I use the left click for panning instead of changing back to select mode. I can get around the issue by using the right click but it should not happen in the first place.

https://github.com/tldraw/tldraw/assets/2915573/5c7a84c2-f457-4a61-939c-5dc05c766be6

How can we reproduce the bug?

Go to https://examples.tldraw.com/camera-options/full. Click on the middle button to pan. Now select by clicking on the left click and dragging. A hand shows up instead of the selection cursor. Here is a recording with a voice-over.

https://github.com/tldraw/tldraw/assets/2915573/9e96efeb-2ec0-4560-970c-a8434b16805a

What browsers are you seeing the problem on?

Microsoft Edge

Contact Details

No response

Code of Conduct

linear[bot] commented 1 month ago

TLD-2510 [Bug]: The mouse control doesn't switch back to select once middle button is used for pan

ds300 commented 3 weeks ago

Thanks for the report! ❤️