How to disable the middle click event

Actually he already answer my question on another post on the forum so I will close this one and continue on the other thank you!

SOLUTION: Way to keep the bounding box in the scene / canvas, always visible - #7 by PolygonalSun