added panning for video element