Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Grsmto committed Dec 13, 2013
1 parent c688666 commit fdc9425
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@ For example you will notice that it will use native scrollbar on mac OSX 10.8+ (

###Subscribe to `scroll` event
You can subscribe to the `scroll` event just like you do with native scrolling element :

$('#myElement').simplebar().on('scroll', function(...));

###Trigger programmatical scrolling
If you are using another plugins like jQuery.scrollTo or simply want to access to original scroll element, you can retrieve it via a getter :

$('#myElement').simplebar('getScrollElement');

###Non-JS fallback
Expand Down

0 comments on commit fdc9425

Please sign in to comment.