Correctly handle middle-click in panel
(regression in bf01d217c5d23046b9eea6fd90b857bf023f7071 commit)
(#24)