Skip to content

Commit

Permalink
Remove keyboard support. Re-factore code.
Browse files Browse the repository at this point in the history
I removed the keyboard support event binding by default since the
keyboard works even without them (tested on latest build of Chrome,
Safari, Opera and Firefox). To enable this back for some weird reason,
do a {keyboardSupport: true} on initial load.

I refactored the code a bit. I

Other changes:
- moved the `$.extend({},defaults)` to where it's needed (during a
  NanoScroll instantiation)
- Added a removeEvents method call in addEvents.
- Added an visual illustration on how nanoScroller works. (will add
  these later in the README.md files)
  • Loading branch information
jamesflorentino committed Jul 9, 2012
1 parent deadfbb commit 8f98b55
Show file tree
Hide file tree
Showing 4 changed files with 189 additions and 158 deletions.
118 changes: 61 additions & 57 deletions bin/javascripts/jquery.nanoscroller.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8f98b55

Please sign in to comment.