From c41da5bb59b417b9f5627f4cab68eefd376ca0b5 Mon Sep 17 00:00:00 2001 From: Marcus Poeckelmann <marcus.poeckelmann@informatik.uni-halle.de> Date: Thu, 9 Mar 2023 15:06:23 +0100 Subject: [PATCH] Bugfixes: drag_callback; add_edge --- README | 2 +- catview.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README b/README index 2ece30a..4efccce 100644 --- a/README +++ b/README @@ -1,6 +1,6 @@ Thank you for using CATview - the Colored & Aligned Texts view. -This is version 2.3. +This is version 2.31. For information about the features and usage of CATview, please visit: https://catview.uzi.uni-halle.de diff --git a/catview.js b/catview.js index 9217e33..1cf0dc1 100644 --- a/catview.js +++ b/catview.js @@ -23,7 +23,7 @@ */ // CATview - the Colored & Aligned Texts view -// version 2.3 +// version 2.31 const CATview = new function() { this.debug = false; @@ -687,7 +687,7 @@ const CATview = new function() { CATview.drag_do_end = false; if (CATview.drag_callback != null) { - return CATview.drag_callback(old_pos_idx, new_pos_idx); + return CATview.drag_callback(old_pos, new_pos); } }); @@ -1727,7 +1727,7 @@ const CATview = new function() { if (isNaN(index) || CATview.edges == null || index < 0 || index >= CATview.edges.length ) return false; - CATview.edges.splice(edge, 1); + CATview.edges.splice(index, 1); return true; }; -- GitLab