Fixed a bug where sometimes tabs got stuck in the wrong position when dragged out very fast.