Skip to content

fix: use compound assignment in nav() focus calculation#389

Closed
wowitsjack wants to merge 1 commit intoFredolx:mainfrom
wowitsjack:fix/home-nav-dead-code
Closed

fix: use compound assignment in nav() focus calculation#389
wowitsjack wants to merge 1 commit intoFredolx:mainfrom
wowitsjack:fix/home-nav-dead-code

Conversation

@wowitsjack
Copy link

@wowitsjack wowitsjack commented Mar 7, 2026

Full source available at FredTV-Next, my personal fork with all features integrated.

Summary

  • tmpFocus / 3 was a no-op (expression result discarded, not assigned back)
  • Changed to tmpFocus /= 3 so the division actually takes effect for keyboard navigation on small screens

Test plan

  • Use arrow key navigation on a small/mobile viewport, verify focus moves correctly

@CLAassistant
Copy link

CLAassistant commented Mar 7, 2026

CLA assistant check
All committers have signed the CLA.

`tmpFocus / 3` was a no-op (result discarded). Changed to
`tmpFocus /= 3` so the division actually takes effect on
small screens.
@wowitsjack wowitsjack force-pushed the fix/home-nav-dead-code branch from 90c636b to 18fa916 Compare March 7, 2026 00:38
@wowitsjack
Copy link
Author

wowitsjack commented Mar 7, 2026

Yep agreed

@wowitsjack wowitsjack force-pushed the fix/home-nav-dead-code branch 2 times, most recently from 1e4a7d6 to 18fa916 Compare March 7, 2026 15:54
@wowitsjack
Copy link
Author

Superseded by #396 + #397 which contribute the full FredTV-Next codebase as a proper 2-part stack.

@wowitsjack wowitsjack closed this Mar 7, 2026
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.

2 participants