InvokeAI/invokeai/frontend/web/src/features/gallery
psychedelicious f8c3db72e9 feat(ui): improved arrow key navigation in gallery
- Fix preexisting bug where gallery network requests were duplicated when triggering infinite scroll
- Refactor `useNextPrevImage` to not use `state => state` as an input selector - logic split up into different hooks
- Remove use instant scroll for arrow key navigation - smooth scroll is janky when you hold the arrow down and it fires rapidly
- Move gallery nav hotkeys to GalleryImageGrid component, so they work whenever the gallery is open (previously didn't work on canvas or workflow editor tabs)
- Use nanostores for gallery grid refs instead of passing context with virtuoso's context feature, making it much simpler to do the imperative gallery nav
- General gallery hook/component cleanup
2024-01-07 01:19:32 +11:00
..
components feat(ui): improved arrow key navigation in gallery 2024-01-07 01:19:32 +11:00
hooks feat(ui): improved arrow key navigation in gallery 2024-01-07 01:19:32 +11:00
store fix(ui): fix more state => state selectors 2024-01-06 00:03:07 +11:00
util feat(ui): improved arrow key navigation in gallery 2024-01-07 01:19:32 +11:00