From: kjvdheide Date: Thu, 25 Jan 2018 19:36:51 +0000 (+0000) Subject: JAL-2844 allow clicks outside of the tree range again (clears selection) X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8358417f47f59a5669628814d67294806f6c1cab;p=jalview.git JAL-2844 allow clicks outside of the tree range again (clears selection) --- 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? - } + }