Skip to content

Commit 5744345

Browse files
Riksu9000JF002
authored andcommitted
Fix slow scroll
1 parent 6222b7c commit 5744345

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/displayapp/screens/Music.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,13 @@ Music::Music(Pinetime::Applications::DisplayApp* app, Pinetime::Controllers::Mus
119119
constexpr int8_t MIDDLE_OFFSET = -25;
120120
txtArtist = lv_label_create(lv_scr_act(), nullptr);
121121
lv_label_set_long_mode(txtArtist, LV_LABEL_LONG_SROLL_CIRC);
122-
lv_label_set_anim_speed(txtArtist, 1);
123122
lv_obj_align(txtArtist, nullptr, LV_ALIGN_IN_LEFT_MID, 12, MIDDLE_OFFSET + 1 * FONT_HEIGHT);
124123
lv_label_set_align(txtArtist, LV_ALIGN_IN_LEFT_MID);
125124
lv_obj_set_width(txtArtist, LV_HOR_RES - 12);
126125
lv_label_set_text(txtArtist, "Artist Name");
127126

128127
txtTrack = lv_label_create(lv_scr_act(), nullptr);
129128
lv_label_set_long_mode(txtTrack, LV_LABEL_LONG_SROLL_CIRC);
130-
lv_label_set_anim_speed(txtTrack, 1);
131129
lv_obj_align(txtTrack, nullptr, LV_ALIGN_IN_LEFT_MID, 12, MIDDLE_OFFSET + 2 * FONT_HEIGHT + LINE_PAD);
132130

133131
lv_label_set_align(txtTrack, LV_ALIGN_IN_LEFT_MID);
@@ -303,4 +301,4 @@ bool Music::OnTouchEvent(Pinetime::Applications::TouchEvents event) {
303301
return true;
304302
}
305303
}
306-
}
304+
}

src/displayapp/screens/Notifications.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ Notifications::NotificationItem::NotificationItem(const char* title,
184184
}
185185
lv_label_set_text(alert_type, title);
186186
lv_label_set_long_mode(alert_type, LV_LABEL_LONG_SROLL_CIRC);
187-
lv_label_set_anim_speed(alert_type, 3);
188187
lv_obj_set_width(alert_type, 180);
189188
lv_obj_align(alert_type, NULL, LV_ALIGN_IN_TOP_LEFT, 0, 16);
190189

0 commit comments

Comments
 (0)