Skip to content

Commit dc25e7a

Browse files
authored
Merge pull request #820 from Riksu9000/fix-anim-dir
Fix animation when long pressing on screens adjacent to watch face
2 parents 894e3ce + bdf7e52 commit dc25e7a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/displayapp/DisplayApp.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,13 @@ void DisplayApp::Refresh() {
262262
break;
263263
case Messages::ButtonLongPressed:
264264
if (currentApp != Apps::Clock) {
265-
LoadApp(Apps::Clock, DisplayApp::FullRefreshDirections::Down);
265+
if (currentApp == Apps::Notifications) {
266+
LoadApp(Apps::Clock, DisplayApp::FullRefreshDirections::Up);
267+
} else if (currentApp == Apps::QuickSettings) {
268+
LoadApp(Apps::Clock, DisplayApp::FullRefreshDirections::LeftAnim);
269+
} else {
270+
LoadApp(Apps::Clock, DisplayApp::FullRefreshDirections::Down);
271+
}
266272
}
267273
break;
268274
case Messages::ButtonLongerPressed:

0 commit comments

Comments
 (0)