Fixed an issue with activating proper tab after dragging.