This method is called when jScrollPane is trying to animate to a new position. You can override it if you want to provide advanced animation functionality.
Destroys the jScrollPane on the instance matching this API object and restores the browser's default behaviour.
Returns the height of the content within the scroll pane.
number
Gets a reference to the content pane. It is important that you use this method if you want to edit the content of your jScrollPane as if you access the element directly then you may have some problems (as your original element has had additional elements for the scrollbars etc added into it).
Returns the current x position of the viewport with regards to the content pane.
number
Returns the current y position of the viewport with regards to the content pane.
number
Returns the width of the content within the scroll pane.
number
Returns whether or not this scrollpane has a horizontal scrollbar.
boolean
Returns whether or not this scrollpane has a vertical scrollbar.
boolean
Returns the horizontal position of the viewport within the pane content.
number
Returns the vertical position of the viewport within the pane content.
number
Hijacks the links on the page which link to content inside the scrollpane. If you have changed the content of your page (e.g. via AJAX) and want to make sure any new anchor links to the contents of your scroll pane will work then call this function.
Positions the horizontal drag at the specified x position (and updates the viewport to reflect this)
New position of the horizontal drag
Should an animation occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Positions the vertical drag at the specified y position (and updates the viewport to reflect this)
Should an animation occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Reinitialises the scroll pane (if it's internal dimensions have changed since the last time it was initialised). The settings object which is passed in will override any settings from the previous time it was initialised - if you don't pass any settings then the ones from the previous initialisation will be used.
Scrolls the pane by the specified amount of pixels.
Number of pixels to scroll horizontally
Number of pixels to scroll vertically
Should an animation occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls the pane by the specified amount of pixels.
Number of pixels to scroll horizontally
Should an animation occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls the pane by the specified amount of pixels
Number of pixels to scroll vertically
Should an animation occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls the pane so that the specified co-ordinates within the content are at the top left of the viewport.
Left position of the viewport to scroll to
Top position of the viewport to scroll to
Should an animation occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls this jScrollPane down as far as it can currently scroll.
Should an animation occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
any
Scrolls the specified element (a jQuery object) into view so that it can be seen within the viewport.
A jQuery object to scroll to
If it is true then the element will appear at the top of the viewport, if it is false then the viewport will scroll as little as possible to show the element.
Should an animation occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls the specified element (a jQuery selector string) into view so that it can be seen within the viewport.
A jQuery selector of the object to scroll to
If it is true then the element will appear at the top of the viewport, if it is false then the viewport will scroll as little as possible to show the element.
Should an animation occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls the specified element (a DOM node) into view so that it can be seen within the viewport.
A DOM node to scroll to
If it is true then the element will appear at the top of the viewport, if it is false then the viewport will scroll as little as possible to show the element.
Should an animation occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls the pane to the specified percentage of its maximum horizontal scroll position.
Percentage from left of the full width of the viewport to scroll to
Should an animation occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls the pane to the specified percentage of its maximum vertical scroll position.
Percentage from top of the full width of the viewport to scroll to
Should an animation occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls the pane so that the specified co-ordinate within the content is at the left of the viewport.
Left position of the viewport to scroll to
Should an animation occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.
Scrolls the pane so that the specified co-ordinate within the content is at the top of the viewport.
Top position of the viewport to scroll to
Should an animation occur. If you don't provide this argument then the animateScroll value from the settings object is used instead.