Skip to content

Fix power button page turn on long-press sleep#88

Merged
bigbag merged 1 commit intobigbag:mainfrom
niklasarnitz:fix/power-button-short-vs-long-press
Mar 13, 2026
Merged

Fix power button page turn on long-press sleep#88
bigbag merged 1 commit intobigbag:mainfrom
niklasarnitz:fix/power-button-short-vs-long-press

Conversation

@niklasarnitz
Copy link
Copy Markdown
Contributor

@niklasarnitz niklasarnitz commented Mar 12, 2026

Summary

  • What is the goal of this PR?
    Fix a small UX issue: when short power-button press is configured as page turn, putting the device to sleep via long press should not also turn a page.
  • What changes are included?
    ReaderState now tracks how long the power button is held when short-press page turn is enabled.
    Page turn is deferred until release and only triggered for true short presses; long presses are treated as sleep action only.

Additional Context

  • Add any other information that might be helpful for the reviewer (e.g., performance implications, potential risks, specific areas to focus on).

@bigbag bigbag merged commit b3285a5 into bigbag:main Mar 13, 2026
bigbag added a commit that referenced this pull request Mar 13, 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