Permalink
Browse files

bind to .css-chart instead of document so that it won't block page sc…

…rolling. also add tabindex=0 so it can gain focus.
  • Loading branch information...
1 parent ca0808f commit 1ed36bb29ecdc95b43bf2111d60db2a1425a2431 @myakura myakura committed Jan 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.html
View
2 index.html
@@ -384,7 +384,7 @@
<script>
// e-egg.
- jQuery(document).bind('wheel mousewheel keydown', function (e, delta) {
+ jQuery('.css-chart').attr('tabindex', 0).on('wheel mousewheel keydown', function (e, delta) {
var newval,
num = $('div.css-chart p').css('padding-left');

0 comments on commit 1ed36bb

Please sign in to comment.