Timeline controlled by curser

I am looking at trying to make the users curser control timeline action ie move the mouse left and right thus moving the timeline pointer left and right. Would there be tutorial on this. I cannot find one. Thanks.