I don't think using a `mouseup` here is correct, consider the following using this branch:

* Middle click a tab but hold down the button
* Move the mouse over a different tab while holding the button
* Release the button
* The tab under the cursor closes instead of the tab originally clicked