JAL-2844 allow clicks outside of the tree range again (clears selection)
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Thu, 25 Jan 2018 19:36:51 +0000 (19:36 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Thu, 25 Jan 2018 19:36:51 +0000 (19:36 +0000)
src/jalview/ext/archaeopteryx/JalviewBinding.java

index 822f749..c7279d0 100644 (file)
@@ -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<TreeNodeI> foundNodes = getNodesAboveThreshold(
                 threshold,
                 tree.getRoot());
 
-      }
-      else
-      {
-        // clear previous colours?
-      }
+
     }