From 8358417f47f59a5669628814d67294806f6c1cab Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Thu, 25 Jan 2018 19:36:51 +0000 Subject: [PATCH] JAL-2844 allow clicks outside of the tree range again (clears selection) --- src/jalview/ext/archaeopteryx/JalviewBinding.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/jalview/ext/archaeopteryx/JalviewBinding.java b/src/jalview/ext/archaeopteryx/JalviewBinding.java index 822f749..c7279d0 100644 --- a/src/jalview/ext/archaeopteryx/JalviewBinding.java +++ b/src/jalview/ext/archaeopteryx/JalviewBinding.java @@ -336,18 +336,14 @@ public final class JalviewBinding rootX = tree.getRoot().getXcoord(); // don't bother if 0 distance tree or clicked x lies outside of tree - if (furthestNodeX != rootX && !(x > furthestNodeX)) - { + // if (furthestNodeX != rootX && !(x > furthestNodeX)) + float threshold = (x - rootX) / (furthestNodeX - rootX); List foundNodes = getNodesAboveThreshold( threshold, tree.getRoot()); - } - else - { - // clear previous colours? - } + } -- 1.7.10.2