From 4bcd8153dd5b06e58ff0024e175fe9e67016f50f Mon Sep 17 00:00:00 2001 From: Justin Willis Date: Thu, 11 Aug 2016 01:11:15 -0500 Subject: [PATCH] perf(item): apply will-change only when list is active --- src/components/item/item-reorder.scss | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/item/item-reorder.scss b/src/components/item/item-reorder.scss index 78bafc8eed0..85c21fec6b7 100644 --- a/src/components/item/item-reorder.scss +++ b/src/components/item/item-reorder.scss @@ -24,7 +24,12 @@ ion-reorder { } .reorder-enabled { + ion-reorder { + display: flex; + } +} +.reorder-list-active { .item, .item-wrapper { transition: transform 300ms; @@ -32,12 +37,6 @@ ion-reorder { will-change: transform; } - ion-reorder { - display: flex; - } -} - -.reorder-list-active { .item-inner { pointer-events: none; }