OLD | NEW |
1 Verifies that setting the scroll-blocks-on property in a stylesheet creates laye
rs with the correct modes only when it's greater than the defaults on the root.
In this case, only 'addScroll' should get a layer. | 1 Verifies that setting the scroll-blocks-on property in a stylesheet creates laye
rs with the correct modes only when it's greater than the defaults on the root.
In this case, only 'addScroll' should get a layer. |
2 | 2 |
3 { | 3 { |
4 "bounds": [800, 600], | 4 "bounds": [800, 600], |
5 "children": [ | 5 "children": [ |
6 { | 6 { |
7 "bounds": [800, 600], | 7 "bounds": [800, 600], |
8 "scrollBlocksOn": ["StartTouch", "WheelEvent"], | 8 "scrollBlocksOn": [ |
| 9 "StartTouch", |
| 10 "WheelEvent" |
| 11 ], |
9 "contentsOpaque": true, | 12 "contentsOpaque": true, |
10 "drawsContent": true, | 13 "drawsContent": true, |
11 "children": [ | 14 "children": [ |
12 { | 15 { |
13 "position": [8, 8], | 16 "position": [8, 8], |
14 "bounds": [784, 1], | 17 "bounds": [784, 1], |
15 "scrollBlocksOn": ["WheelEvent"] | 18 "scrollBlocksOn": [ |
| 19 "WheelEvent" |
| 20 ] |
16 }, | 21 }, |
17 { | 22 { |
18 "position": [8, 9], | 23 "position": [8, 9], |
19 "bounds": [784, 2], | 24 "bounds": [784, 2], |
20 "scrollBlocksOn": ["StartTouch", "ScrollEvent"] | 25 "scrollBlocksOn": [ |
| 26 "StartTouch", |
| 27 "ScrollEvent" |
| 28 ] |
21 } | 29 } |
22 ] | 30 ] |
23 } | 31 } |
24 ] | 32 ] |
25 } | 33 } |
26 | 34 |
OLD | NEW |