A fork of https://github.com/crosspoint-reader/crosspoint-reader
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: avoid skipping chapter after screenshot (#1625)

## Summary

* **What is the goal of this PR?**
Fixes skipping chapter when it's enabled in Settings and you take a
Screenshot.
* **What changes are included?**
A simple return if Power and Down were released before the skipChapter.

## Additional Context

* There is an Issue related #1595.
* Checked that it kept the Power button funcionality for Next page and
Suspend.

---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? _**NO**_

authored by

Mraulio and committed by
GitHub
5c12f2f0 8d6b35b8

+5
+5
src/activities/reader/EpubReaderActivity.cpp
··· 195 195 196 196 const bool skipChapter = SETTINGS.longPressChapterSkip && mappedInput.getHeldTime() > skipChapterMs; 197 197 198 + // Don't skip chapter after screenshot 199 + if (gpio.wasReleased(HalGPIO::BTN_POWER) && gpio.wasReleased(HalGPIO::BTN_DOWN)) { 200 + return; 201 + } 202 + 198 203 if (skipChapter) { 199 204 lastPageTurnTime = millis(); 200 205 // We don't want to delete the section mid-render, so grab the semaphore