Hi Gakkari! I think to have OCD and I follow things and people with the eyes too sometimes. If you feel that you can't resist from doing it even in dangerous situation, I'd really suggest that you talk with a therapist. I know that it can seem scary, but it could really be useful.
Take care!