Skip to content

Commit

Permalink
Added scrollToRight method for use with Right to Left pages
Browse files Browse the repository at this point in the history
  • Loading branch information
John Cashmore committed Aug 10, 2012
1 parent f3143b0 commit db73f4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions script/jquery.jscrollpane.js
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,11 @@
{
positionDragY(dragMaxY, animate);
},
// Scrolls this jScrollPane right as far as it can currently scroll. If animate isn't passed then the
// animateScroll value from settings is used instead.
scrollToRight: function (animate) {
positionDragX(dragMaxX, animate);
},
// 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.
Expand Down
Loading

0 comments on commit db73f4b

Please sign in to comment.