]> arthur.barton.de Git - netdata.git/commitdiff
disable charts vertical panning
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 30 Oct 2016 22:58:30 +0000 (00:58 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 30 Oct 2016 22:58:30 +0000 (00:58 +0200)
web/dashboard.js
web/index.html

index 01af8a67998c59da161463e7b11b54ea44adb302..eed63f736c69922a926ee5d0eb05bd94fba95bc4 100644 (file)
                         state.globalSelectionSyncStop();
                         state.globalSelectionSyncDelay();
                         state.setMode('pan');
+                        context.is2DPan = false;
                         Dygraph.movePan(event, dygraph, context);
                     }
                     else if(context.isZooming) {
                             normal_def = event.wheelDelta / 40;
                         else
                             // firefox
-                            normal_def = event.deltaY * -2;
+                            normal_def = event.deltaY * -1.2;
 
                         var normal = (event.detail) ? event.detail * -1 : normal_def;
                         var percentage = normal / 50;
index 5ce77a06058d6d3d59f1eb9df39224d3eb62ad44..916a74d90f0379482814bae5ae5987521a303ec2 100644 (file)
     </div>
 </body>
 </html>
-<script type="text/javascript" src="dashboard.js?v20161030-30"></script>
+<script type="text/javascript" src="dashboard.js?v20161030-37"></script>