close document by clicking tab with middle mouse button

I believe so, and at least that was the previous behaviour. I believe for dragging, we want to treat `ONMOUSEUP` and `ONLOSECAPTURE` the same way -- however, we can 'short-circuit' away from that for middle-mouse events (which we do not use for dragging, anyhow).