From: kjvdheide Date: Wed, 29 Nov 2017 17:45:42 +0000 (+0000) Subject: JAL-2844 check added for clicks left of root node X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=cf06d397dd1953c3078a8ab4858311acda2b90a2;p=jalview.git JAL-2844 check added for clicks left of root node --- diff --git a/src/jalview/ext/archaeopteryx/JalviewBinding.java b/src/jalview/ext/archaeopteryx/JalviewBinding.java index 1649b62..21e53a2 100644 --- a/src/jalview/ext/archaeopteryx/JalviewBinding.java +++ b/src/jalview/ext/archaeopteryx/JalviewBinding.java @@ -265,7 +265,9 @@ public final class JalviewBinding furthestNodeX = furthestNode.getXcoord(); rootX = tree.getRoot().getXcoord(); - if (furthestNodeX != rootX && x < furthestNodeX) // don't bother if 0 + if (furthestNodeX != rootX && !(x < rootX || x > furthestNodeX)) // don't + // bother + // if 0 // distance tree or // clicked x lies outside // of tree