Bug: figma incorrectly handles the middle mouse button over different objects (2 bugs)

Bug: when moving on the canvas (middle mouse button) starting with the cursor above the link. The object is moved instead of moving the viewport on the canvas.
I think it’s a bug, because it’s a very strange and unexpected action

While I was writing I found a second bug, when you move the viewport over the canvas (by pressing the middle mouse button) and if you are editing text at that moment, then when you start moving over another text, you will not move the viewport over the canvas, but will start editing the text.

It seems that the program incorrectly handles the middle mouse button over different objects and takes it as the right mouse button.