Commit f3edea7ed743dff14f547b7fab2244f3913a10bd
1 parent
d92a22c9
Exists in
master
and in
4 other branches
Fixed network graph keyboard nav
Showing
3 changed files
with
2 additions
and
3 deletions
Show diff stats
app/assets/javascripts/graph.js
| 1 | function initGraphNav() { | 1 | function initGraphNav() { |
| 2 | - $("body").keydown(function(e) { | 2 | + $(".graph svg").css("position", "relative"); |
| 3 | + $("body").bind("keyup", function(e) { | ||
| 3 | if(e.keyCode == 37) { // left | 4 | if(e.keyCode == 37) { // left |
| 4 | $(".graph svg").animate({ left: "+=400" }); | 5 | $(".graph svg").animate({ left: "+=400" }); |
| 5 | } else if(e.keyCode == 39) { // right | 6 | } else if(e.keyCode == 39) { // right |
app/assets/stylesheets/common.scss
app/assets/stylesheets/gitlab_bootstrap.scss