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
  • Loading branch information
jgw96 committed Aug 11, 2016
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
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4bcd815

Please sign in to comment.