From e97d59b953c303920a660360c6931155286aad45 Mon Sep 17 00:00:00 2001 From: John Reilly Date: Fri, 10 Jan 2014 13:35:23 +0000 Subject: [PATCH] jQuery: scrollLeft / scrollTop JSDoc'd --- jquery/jquery.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/jquery/jquery.d.ts b/jquery/jquery.d.ts index 01e75e118..9bc102ca0 100644 --- a/jquery/jquery.d.ts +++ b/jquery/jquery.d.ts @@ -1067,10 +1067,26 @@ interface JQuery { */ position(): JQueryCoordinates; + /** + * Get the current horizontal position of the scroll bar for the first element in the set of matched elements or set the horizontal position of the scroll bar for every matched element. + */ scrollLeft(): number; + /** + * Set the current horizontal position of the scroll bar for each of the set of matched elements. + * + * @param value An integer indicating the new position to set the scroll bar to. + */ scrollLeft(value: number): JQuery; + /** + * Get the current vertical position of the scroll bar for the first element in the set of matched elements or set the vertical position of the scroll bar for every matched element. + */ scrollTop(): number; + /** + * Set the current vertical position of the scroll bar for each of the set of matched elements. + * + * @param value An integer indicating the new position to set the scroll bar to. + */ scrollTop(value: number): JQuery; /**