Fix tool buttons on touch devices

[#74774754]
Fix "click to change out of the tool" feature

[#74780268] [#74774754]

It was causing problems especially on mobile devices and breaking
interaction (due to error being thrown).