From cf06d397dd1953c3078a8ab4858311acda2b90a2 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Wed, 29 Nov 2017 17:45:42 +0000 Subject: [PATCH] JAL-2844 check added for clicks left of root node --- src/jalview/ext/archaeopteryx/JalviewBinding.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 1.7.10.2