changed mousedown to mouseup for track clicking