This repository was archived by the owner on Mar 13, 2018. It is now read-only.
File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
: host {
2
2
dis play: block;
3
3
overflow: auto ;
4
- /*-webkit-overflow-scrolling: touch;
5
- -webkit-transform: translateZ(0);
6
- transform: translateZ(0);*/
7
4
}
8
5
9
6
.core-list-viewport > * {
17
14
18
15
.core-list-viewport .horizontal > * {
19
16
display : inline-block;
20
- }
17
+ }
18
+
19
+ /* Setting will-change: transform on the #viewport makes the viewport a
20
+ stacking context, which causes all the composited layers inside the
21
+ viewport to actually be stacked underneath the viewport. */
22
+ # viewport {
23
+ will-change : transform;
24
+ }
Original file line number Diff line number Diff line change 387
387
388
388
// determine proper transform mechanizm
389
389
if ( document . documentElement . style . transform !== undefined ) {
390
- function setTransform ( element , string , value ) {
390
+ var setTransform = function ( element , string , value ) {
391
391
element . style . transform = string ;
392
392
element . _transformValue = value ;
393
393
}
394
394
} else {
395
- function setTransform ( element , string , value ) {
395
+ var setTransform = function ( element , string , value ) {
396
396
element . style . webkitTransform = string ;
397
397
element . _transformValue = value ;
398
398
}
You can’t perform that action at this time.
0 commit comments