From c98a8e0361d5115b5bac9c07278a02225fb5afa2 Mon Sep 17 00:00:00 2001 From: "stephen@cubedesigners.com" Date: Mon, 24 Sep 2018 15:13:04 +0000 Subject: [PATCH] WIP #2087 @0.5 --- .../Util/html5/zoom-groups/class.ws.html5.links.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/inc/ws/Util/html5/zoom-groups/class.ws.html5.links.php b/inc/ws/Util/html5/zoom-groups/class.ws.html5.links.php index 69a477cc0..f53386c07 100644 --- a/inc/ws/Util/html5/zoom-groups/class.ws.html5.links.php +++ b/inc/ws/Util/html5/zoom-groups/class.ws.html5.links.php @@ -1450,7 +1450,17 @@ class zoomLink extends normalLink public function getHTMLContainerClass() { - return parent::getHTMLContainerClass() . ' zoomarea'; + $class = ' zoomarea'; + + $groups = explode(',', $this->group); + + // If there's more than one group assigned, this link shouldn't be clickable (disabled via CSS) + // This needs to be set here (parent element) instead of on the actual link so we don't end up with a dead zone + if (count($groups) > 1) { + $class .= ' pointer-events-none'; + } + + return parent::getHTMLContainerClass() . $class; } public function getDefaultTooltip() -- 2.39.5