[LNT] r208444 - Disable mouse-wheel zoom on LNT graphs

Chris Matthews cmatthews5 at apple.com
Fri May 9 13:46:12 PDT 2014


Author: cmatthews
Date: Fri May  9 15:46:12 2014
New Revision: 208444

URL: http://llvm.org/viewvc/llvm-project?rev=208444&view=rev
Log:
Disable mouse-wheel zoom on LNT graphs

Flot's mouse wheel zoom feature does not work well on OSX. Since there is a manual zoom button, disable mouse wheel zoom.

Modified:
    lnt/trunk/lnt/server/ui/templates/v4_graph.html

Modified: lnt/trunk/lnt/server/ui/templates/v4_graph.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_graph.html?rev=208444&r1=208443&r2=208444&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_graph.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_graph.html Fri May  9 15:46:12 2014
@@ -62,7 +62,6 @@ function init() {
 	var graph = $("#graph");
 	var graph_plots = {{graph_plots|tojson|safe}};
 	var baseline_plots = {{baseline_plots|tojson|safe}};
-	var is_interactive = ! $.browser.webkit;
 	var graph_options = {
       series : {
         lines : {
@@ -76,7 +75,7 @@ function init() {
         enabled: false
 {% endif %}
       },
-      zoom : { interactive : true },
+      zoom : { interactive : false },
       pan : { interactive : true,
               frameRate: 60 },
       grid : {





More information about the llvm-commits mailing list