tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

content-offset.yaml (636B)


      1 # Ensure that if a parent external scroll offset has a fractional component
      2 # that this doesn't affect the snapping calculations during scene building
      3 # (the overall scroll offset is snapped to device pixel by the spatial tree)
      4 ---
      5 root:
      6  items:
      7    - type: scroll-frame
      8      bounds: [0, 0, 200, 100]
      9      content-size: [200, 200]
     10      scroll-offset: [0, 100]
     11      external-scroll-offset: [0, 50.1]
     12      items:
     13        - type: stacking-context
     14          bounds: [0, -1.0, 0, 0]
     15          transform: translate(100, 0.4)
     16          items:
     17            - type: rect
     18              bounds: [ 25, 125, 50, 50 ]
     19              color: green