Is there way to use middle click of mouse as Pan in Grasshopper1?

is there way to use middle click of mouse for Pan in Grasshopper1? by Script or othe? (python , c# ?)