penpot/frontend/test/frontend_tests
Andrey Antukh 3ff1acfb6a
🐛 Fix vector index out of bounds in viewer zoom-to-fit/fill (#8834)
Clamp the frame index to the valid range in zoom-to-fit and
zoom-to-fill events before accessing the frames vector. When the
URL query parameter :index exceeds the number of frames on the
page (e.g. index=1 with a single frame), nth would throw
"No item 1 in vector of length 1". Also adds unit tests covering
the boundary condition.
2026-04-02 09:49:33 +02:00
..
2025-04-03 11:38:35 +02:00
2026-02-13 13:17:08 +01:00
2025-01-16 15:31:18 +01:00
2024-01-08 09:32:50 +01:00
2025-12-11 12:02:34 +01:00
2025-12-11 12:02:34 +01:00
2024-01-08 09:32:50 +01:00
2024-01-08 09:32:50 +01:00