diff --git a/src/activities/home/MyLibraryActivity.cpp b/src/activities/home/MyLibraryActivity.cpp index 7b894699..06823f52 100644 --- a/src/activities/home/MyLibraryActivity.cpp +++ b/src/activities/home/MyLibraryActivity.cpp @@ -20,8 +20,8 @@ constexpr int LEFT_MARGIN = 20; constexpr int RIGHT_MARGIN = 40; // Extra space for scroll indicator // Timing thresholds for button behavior -constexpr int LONG_PRESS_MS = 450; // Long press: change tab -constexpr int DOUBLE_PRESS_MS = 120; // Double press: skip page +constexpr int LONG_PRESS_MS = 450; // Long press: change tab +constexpr int DOUBLE_PRESS_MS = 120; // Double press: skip page constexpr unsigned long GO_HOME_MS = 1000; // Long press back: go to root void sortFileList(std::vector& strs) { diff --git a/src/activities/home/MyLibraryActivity.h b/src/activities/home/MyLibraryActivity.h index 756540b7..ecf5a455 100644 --- a/src/activities/home/MyLibraryActivity.h +++ b/src/activities/home/MyLibraryActivity.h @@ -31,9 +31,9 @@ class MyLibraryActivity final : public Activity { }; ButtonState buttonState = ButtonState::Idle; - unsigned long firstPressTime = 0; // Time of first PRESS - unsigned long firstReleaseTime = 0; // Time of first RELEASE - bool isPrevButtonPressed = false; // Which button was pressed first + unsigned long firstPressTime = 0; // Time of first PRESS + unsigned long firstReleaseTime = 0; // Time of first RELEASE + bool isPrevButtonPressed = false; // Which button was pressed first // Action execution functions void executeMoveItem(bool isPrevButton);