Author: Antonio Cuni <[email protected]>
Branch: 
Changeset: r133:298d56f97a92
Date: 2011-06-10 16:10 +0200
http://bitbucket.org/pypy/jitviewer/changeset/298d56f97a92/

Log:    scroll only vertically when clicking on a loop or a bridge

diff --git a/static/script.js b/static/script.js
--- a/static/script.js
+++ b/static/script.js
@@ -11,7 +11,7 @@
     }
     $.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) {
@@ -52,7 +52,7 @@
                     }
                 }
             }
-            $.scrollTo($("#loop-" + bridge_id));
+            $.scrollTo($("#loop-" + bridge_id), {axis:'y'});
         });
     });
 }
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to