This premise is false. A spinning top would stop if you touched it in space, just as on Earth. In a vacuum, there is no air friction, but touching it transfers your momentum to the top, causing it to stop or change its rotation axis.