A drifting Markov process on the circle, with physical applications