This is not a problem with your eye
, but with your circulation.
The parts of the brain that control balance and sight are not receiving enough blood. It can occur with fainting, but there are many other possible causes. If this is a recurring problem you should discuss it with your pcp.