Skip to content

Conversation

@chiefcll
Copy link
Contributor

No description provided.

chiefcll and others added 30 commits June 17, 2025 10:53
* Cleanup and rename col/row navigation helpers

* Add spatial navigation helpers

* Refactor navigation functions to improve selection logic and simplify child focus handling

* Fix onGridFocus no scroll issue

* Refactor onGridFocus to use optional parameter syntax

* Rename getDistanceBetweenRects to getWeightedDistanceBetweenRects and update logic to calculate distances based on center and edge positions.

* Enhance navigableForwardFocus to include lastSelected in onSelectedChanged callback

* Use findFirstSelectableChildIdx in moveSelection

* Refactor selectChild to handle null children and update onSelectedChanged callback

* Refactor navigableForwardFocus to simplify focus checking and update selected child logic

* Only check for skipfocus for selectable child

* Use findFirstFocusableChildIdx in navigableForwardFocus

* Add idxInArray to cleanup code

* Switch to calculating rect dist from centers

* Use new navigable helpers in row and col

* Fix selection logic in moveSelection to handle skipFocus correctly

* Add jsdoc to navigation helpers

* Rename navigable helpers and add examples

* Correct calculating child rect
Depends on lightning-tv/core#66
@chiefcll chiefcll merged commit b0a8dcf into main Jan 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants