Skip to content

Commit

Permalink
Triggering the default scroll event as well as the custom jsp-scroll-…
Browse files Browse the repository at this point in the history
…x and jsp-scroll-y events when scroll happens (fixes issue vitch#26)
  • Loading branch information
vitch committed Jan 29, 2011
1 parent adbe6df commit cd5fe9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions script/jquery.jscrollpane.js
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@

updateVerticalArrows(isAtTop, isAtBottom);
pane.css('top', destTop);
elem.trigger('jsp-scroll-y', [-destTop, isAtTop, isAtBottom]);
elem.trigger('jsp-scroll-y', [-destTop, isAtTop, isAtBottom]).trigger('scroll');
}

function positionDragX(destX, animate)
Expand Down Expand Up @@ -750,7 +750,7 @@

updateHorizontalArrows(isAtLeft, isAtRight);
pane.css('left', destLeft);
elem.trigger('jsp-scroll-x', [-destLeft, isAtLeft, isAtRight]);
elem.trigger('jsp-scroll-x', [-destLeft, isAtLeft, isAtRight]).trigger('scroll');
}

function updateVerticalArrows(isAtTop, isAtBottom)
Expand Down
Loading

0 comments on commit cd5fe9c

Please sign in to comment.