From: kjvdheide Date: Fri, 8 Dec 2017 13:47:57 +0000 (+0000) Subject: JAL-2844 reallow clicks to the left of the root (groups whole tree as 1) X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7199905c8a7d8a46f4f27189caff52b9520e0479;p=jalview.git JAL-2844 reallow clicks to the left of the root (groups whole tree as 1) --- diff --git a/src/jalview/ext/archaeopteryx/JalviewBinding.java b/src/jalview/ext/archaeopteryx/JalviewBinding.java index 41d18f5..88b2d15 100644 --- a/src/jalview/ext/archaeopteryx/JalviewBinding.java +++ b/src/jalview/ext/archaeopteryx/JalviewBinding.java @@ -296,14 +296,9 @@ public final class JalviewBinding furthestNodeX = furthestNode.getXcoord(); rootX = tree.getRoot().getXcoord(); - if (furthestNodeX != rootX && !(x < rootX || x > furthestNodeX)) // don't - // bother - // if 0 - // distance tree or - // clicked x lies outside - // of tree + // don't bother if 0 distance tree or clicked x lies outside of tree + if (furthestNodeX != rootX && !(x > furthestNodeX)) { - float threshold = (x - rootX) / (furthestNodeX - rootX); List foundNodes = getNodesAboveThreshold(threshold, tree.getRoot());