From 4860c6961b933b4234baf6608ed9379e7f56d097 Mon Sep 17 00:00:00 2001 From: Tim Buschtoens Date: Thu, 19 Mar 2020 16:31:42 +0100 Subject: [PATCH] Remove workaround comment from animate-tray.jsx Snippets are not the place to document issues. This is a legitimate optimization even without the bug and should not be removed without reason, and even if it was it should be tested. Change-Id: Id75f08e3ffe797b083cd34afd97dea1206583349 --- snippets/animate-tray.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/animate-tray.jsx b/snippets/animate-tray.jsx index a618691ca..6aad2116f 100644 --- a/snippets/animate-tray.jsx +++ b/snippets/animate-tray.jsx @@ -70,7 +70,7 @@ async function positionTrayInRestingState(velocity) { trayState = 'animating'; const translationY = velocity > 0 ? trayHeight : 0; const options = {duration: Math.min(Math.abs(trayHeight / velocity * 1000), 800)}; - if (tray.transform.translationY !== translationY) { // workaround eclipsesource/tabris-js#1988 + if (tray.transform.translationY !== translationY) { await Promise.all([ shade.animate({opacity: getShadeOpacity(translationY)}, options), strapIcon.animate({transform: getStrapIconTransform(translationY)}, options),