OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <style> |
| 3 #proxied { |
| 4 width: 50px; |
| 5 height: 50px; |
| 6 background: papayawhip; |
| 7 } |
| 8 #proxied-scroller { |
| 9 width: 100px; |
| 10 height: 100px; |
| 11 overflow: scroll; |
| 12 border: 1px solid black; |
| 13 } |
| 14 #scrolled { |
| 15 width: 50px; |
| 16 height: 1000px; |
| 17 background: papayawhip; |
| 18 } |
| 19 #tall { |
| 20 width: 50px; |
| 21 height: 2000px; |
| 22 background: papayawhip; |
| 23 } |
| 24 |
| 25 </style> |
| 26 <div id="proxied"></div> |
| 27 <div id="proxied-scroller"> |
| 28 <div id="scrolled"></div> |
| 29 </div> |
| 30 <div id="tall"></div> |
| 31 <script> |
| 32 var proxy1 = new CompositorProxy(document.getElementById('proxied'), ['transform
']); |
| 33 var proxy2 = new CompositorProxy(document.getElementById('proxied-scroller'), ['
scrollLeft', 'scrollTop']); |
| 34 var proxy3 = new CompositorProxy(document.scrollingElement, ['scrollLeft', 'scro
llTop']); |
| 35 proxy1.disconnect(); |
| 36 proxy2.disconnect(); |
| 37 proxy3.disconnect(); |
| 38 </script> |
OLD | NEW |