Skip to content

Commit

Permalink
perf(item): apply will-change only when list is active
Browse files Browse the repository at this point in the history
jgw96 committed Aug 11, 2016

Verified

This commit was signed with the committer’s verified signature.
cescoffier Clement Escoffier
1 parent 3324e32 commit 4bcd815
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/components/item/item-reorder.scss
Original file line number Diff line number Diff line change
@@ -24,20 +24,19 @@ ion-reorder {
}

.reorder-enabled {
ion-reorder {
display: flex;
}
}

.reorder-list-active {
.item,
.item-wrapper {
transition: transform 300ms;

will-change: transform;
}

ion-reorder {
display: flex;
}
}

.reorder-list-active {
.item-inner {
pointer-events: none;
}

0 comments on commit 4bcd815

Please sign in to comment.