)]}'
{
  "commit": "6fa4a524e276438dcf6823efb57fc06073850520",
  "tree": "b5bfeda4f5b78e5869055b8c3ec4a79a6f5b223e",
  "parents": [
    "86ac49e93480237e41228de9558abd1a529c4040"
  ],
  "author": {
    "name": "philter",
    "email": "hello@rive.app",
    "time": "Wed May 20 21:17:21 2026 +0000"
  },
  "committer": {
    "name": "philter",
    "email": "hello@rive.app",
    "time": "Wed May 20 21:17:21 2026 +0000"
  },
  "message": "fix: Scroll to hidden layouts using scrollIndex (#12598) 679b808585\nFixes 2 issues:\n1. When setting scrollIndex to an index that has a layout that is hidden, it would always get set to index 0 because its bounds were 0,0,0,0. Now, if this happens, we: 1) look forward in the list to find the bounds of the next layout with valid bounds, if we are using carousel, we wrap around to the start of the list and keep looking 2) for non carousel, if we reach the end of the list, walk backwards from the index until we find a visible item.\n2. Always just set the index value when setting it on a keyframe. Otherwise when there are hidden items, this could result in the scrollIndex not being the same as the value the user intended to key.\n\nThis also fixes crashes related to setting scrollIndex to hidden items due to NaN values.\n\nCo-authored-by: Philip Chung \u003cphilterdesign@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9ef8b101c7995c4ee322545c000b1d2018118b51",
      "old_mode": 33188,
      "old_path": ".rive_head",
      "new_id": "ca85904e1f3fd6d36b2cf5185e72f4611e19ce1b",
      "new_mode": 33188,
      "new_path": ".rive_head"
    },
    {
      "type": "modify",
      "old_id": "2f24a3e92a4ad9273520d7db1e6d2ac81597647d",
      "old_mode": 33188,
      "old_path": "include/rive/constraints/scrolling/scroll_constraint.hpp",
      "new_id": "967ae021537d2ca563b4cfb549c5a57b48765e5a",
      "new_mode": 33188,
      "new_path": "include/rive/constraints/scrolling/scroll_constraint.hpp"
    },
    {
      "type": "modify",
      "old_id": "16e38ed720e9b2a8a50488ba272bbf5d38bc6340",
      "old_mode": 33188,
      "old_path": "src/constraints/scrolling/scroll_constraint.cpp",
      "new_id": "32c6ed2284bdae070e2d8636f0ab4c802c970746",
      "new_mode": 33188,
      "new_path": "src/constraints/scrolling/scroll_constraint.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "67d3cafd80b5db144a3c8783d916e61d2987d6c2",
      "new_mode": 33188,
      "new_path": "tests/unit_tests/assets/layout/layout_scroll_visibility.riv"
    },
    {
      "type": "modify",
      "old_id": "c5268e644d0e0a021adb8663fa8b1d43077ce4a0",
      "old_mode": 33188,
      "old_path": "tests/unit_tests/runtime/layout_scroll_test.cpp",
      "new_id": "e77d44bec537bfab686fa10eec51212b7979751e",
      "new_mode": 33188,
      "new_path": "tests/unit_tests/runtime/layout_scroll_test.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "9b04ccb9c8c17df2e9e10988e25831f559178108",
      "new_mode": 33188,
      "new_path": "tests/unit_tests/silvers/layout_scroll_visibility.sriv"
    }
  ]
}
