From 153f000614d67f4a5384109fbe8710ef7e90a5cb Mon Sep 17 00:00:00 2001
From: "mathias.chouet" <mathias.chouet@irstea.fr>
Date: Thu, 11 Jul 2019 10:37:17 +0200
Subject: [PATCH] Improve PAB profile zoom; remove debug message

---
 .../pab-profile-graph/pab-profile-graph.component.ts          | 4 ++--
 src/app/formulaire/definition/concrete/form-pab.ts            | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/app/components/pab-profile-graph/pab-profile-graph.component.ts b/src/app/components/pab-profile-graph/pab-profile-graph.component.ts
index 526b2d9fd..4eb60ec9a 100644
--- a/src/app/components/pab-profile-graph/pab-profile-graph.component.ts
+++ b/src/app/components/pab-profile-graph/pab-profile-graph.component.ts
@@ -88,12 +88,12 @@ export class PabProfileGraphComponent extends ResultsComponent {
         this.graph_options["plugins"] = {
             zoom: {
                 pan: {
-                    enabled: true,
+                    enabled: false, // conflicts with drag zoom
                     mode: "xy",
                 },
                 zoom: {
                     enabled: true,
-                    drag: false, // conflicts with pan; set to false to enable mouse wheel zoom
+                    drag: true, // conflicts with pan; set to false to enable mouse wheel zoom
                     mode: "xy",
                     // percentage of zoom on a wheel event
                     speed: 0.1,
diff --git a/src/app/formulaire/definition/concrete/form-pab.ts b/src/app/formulaire/definition/concrete/form-pab.ts
index 898f54217..aa5bac686 100644
--- a/src/app/formulaire/definition/concrete/form-pab.ts
+++ b/src/app/formulaire/definition/concrete/form-pab.ts
@@ -23,10 +23,10 @@ export class FormulairePab extends FormulaireBase {
         return this.currentNub as Pab;
     }
 
-    public doCompute() {
+    /* public doCompute() {
         this.dumpPabStructure(this.pabNub);
         super.doCompute();
-    }
+    } */
 
     // debug method
     private dumpPabStructure(pab: Pab) {
-- 
GitLab