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": ["StartTouch", "WheelEvent"], |
9 "contentsOpaque": true, | 9 "contentsOpaque": true, |
10 "drawsContent": true, | 10 "drawsContent": true, |
11 "children": [ | 11 "children": [ |
12 { | 12 { |
13 "position": [8, 8], | 13 "position": [8, 8], |
14 "bounds": [784, 1], | 14 "bounds": [784, 1], |
15 "scrollBlocksOn": ["WheelEvent"] | 15 "scrollBlocksOn": ["WheelEvent"] |
16 }, | 16 }, |
17 { | 17 { |
18 "position": [8, 9], | 18 "position": [8, 9], |
19 "bounds": [784, 2], | 19 "bounds": [784, 2], |
20 "scrollBlocksOn": ["StartTouch", "ScrollEvent"] | 20 "scrollBlocksOn": ["StartTouch", "ScrollEvent"] |
21 } | 21 } |
22 ] | 22 ] |
23 } | 23 } |
24 ] | 24 ] |
25 } | 25 } |
26 | 26 |
OLD | NEW |