I don't have a mouse with a middle button so I'm reluctant to do this myself, but maybe one of the other devs will be tempted. Note that you can always pan using the translucent controls that appear when you move the mouse near the top left corner (or whatever corner you prefer in Prefs > View).