From 967df64a7275862fd3e686cf01f0d681690d1572 Mon Sep 17 00:00:00 2001 From: Romuald du Song Date: Thu, 15 Jul 2021 15:09:22 +0200 Subject: [PATCH] add same activate/desactivate behavior for arrow tool --- public/javascripts/spacedeck_sections.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/javascripts/spacedeck_sections.js b/public/javascripts/spacedeck_sections.js index 6758a8c..74aacc8 100644 --- a/public/javascripts/spacedeck_sections.js +++ b/public/javascripts/spacedeck_sections.js @@ -2574,7 +2574,11 @@ var SpacedeckSections = { start_drawing_arrow: function(evt) { this.deselect(); - this.active_tool = "arrow"; + if (this.active_tool == "arrow") { + this.active_tool = "pointer"; + } else { + this.active_tool = "arrow"; + } this.opened_dialog = "none"; },