From c57402f07ea0be7031ace727cdb537e28c9e81d8 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 21 Feb 2022 17:19:06 +0000 Subject: [PATCH] wait #5087 --- inc/ws/Util/html5/master/class.ws.html5.links.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index dcd06052f..fae2cf356 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -1046,6 +1046,7 @@ class contentLink extends wsHTML5Link public $defaultZIndex = 30; public $allowsAnimation = true; public $interactive = false; + public $forceTexture = false; public function getHTMLContainerClass() { @@ -1093,6 +1094,9 @@ class contentLink extends wsHTML5Link $res .= ' data-animation-hide-on-leave '; } } + if ($this->forceTexture && $this->getDepth() >= 40) { + $res .= ' data-force-texture="1" '; + } return $res; } @@ -2191,12 +2195,13 @@ class flipcardLink extends imageLink { public $interactive = true; public $defaultZIndex = 70; + public $forceTexture = true; public function getHTMLContent() { $this->copyExternalFile($this->to); $this->copyExternalFile($this->alternative); - $res='getTooltipAttribute().'>'; + $res = 'getTooltipAttribute() . '>'; $res .= '
'; $res .= '
'; $res .= '
'; -- 2.39.5