Skip to content

Commit 4860c69

Browse files
committed
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
1 parent c2a3446 commit 4860c69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snippets/animate-tray.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async function positionTrayInRestingState(velocity) {
7070
trayState = 'animating';
7171
const translationY = velocity > 0 ? trayHeight : 0;
7272
const options = {duration: Math.min(Math.abs(trayHeight / velocity * 1000), 800)};
73-
if (tray.transform.translationY !== translationY) { // workaround eclipsesource/tabris-js#1988
73+
if (tray.transform.translationY !== translationY) {
7474
await Promise.all([
7575
shade.animate({opacity: getShadeOpacity(translationY)}, options),
7676
strapIcon.animate({transform: getStrapIconTransform(translationY)}, options),

0 commit comments

Comments
 (0)