From 7199905c8a7d8a46f4f27189caff52b9520e0479 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Fri, 8 Dec 2017 13:47:57 +0000 Subject: [PATCH] JAL-2844 reallow clicks to the left of the root (groups whole tree as 1) --- src/jalview/ext/archaeopteryx/JalviewBinding.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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()); -- 1.7.10.2