Adding the drag functionality to the time bar