Commits

Antonio Cuni committed 298d56f

scroll only vertically when clicking on a loop or a bridge

Comments (0)

Files changed (1)

     }
     $.getJSON('/loop', glob_bridge_state, function(arg) {
         $('#main').html(arg.html).ready(function() {
-            $.scrollTo($('#line-' + arg.scrollto), 200);
+            $.scrollTo($('#line-' + arg.scrollto), 200, {axis:'y'});
         });
         $('#callstack').html('')
         for (var index in arg.callstack) {
                     }
                 }
             }
-            $.scrollTo($("#loop-" + bridge_id));
+            $.scrollTo($("#loop-" + bridge_id), {axis:'y'});
         });
     });
 }