Skip to content

Commit 4bcd815

Browse files
committedAug 11, 2016
perf(item): apply will-change only when list is active
1 parent 3324e32 commit 4bcd815

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
 

‎src/components/item/item-reorder.scss

+5-6
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,19 @@ ion-reorder {
2424
}
2525

2626
.reorder-enabled {
27+
ion-reorder {
28+
display: flex;
29+
}
30+
}
2731

32+
.reorder-list-active {
2833
.item,
2934
.item-wrapper {
3035
transition: transform 300ms;
3136

3237
will-change: transform;
3338
}
3439

35-
ion-reorder {
36-
display: flex;
37-
}
38-
}
39-
40-
.reorder-list-active {
4140
.item-inner {
4241
pointer-events: none;
4342
}

0 commit comments

Comments
 (0)
Please sign in to comment.