We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c132667 commit 9fc9218Copy full SHA for 9fc9218
lib/menu.c
@@ -1399,7 +1399,6 @@ bm_menu_run_with_touch(struct bm_menu *menu, struct bm_touch touch)
1399
}
1400
1401
if (count_down == 2) {
1402
- int16_t scroll_count = 0;
1403
int16_t scroll_directions[2];
1404
int16_t distance_trigger = displayed * bm_menu_get_line_height(menu) / 4;
1405
for (size_t i = 0; i < 2; ++i) {
@@ -1410,7 +1409,6 @@ bm_menu_run_with_touch(struct bm_menu *menu, struct bm_touch touch)
1410
1409
int32_t movement_y = point.pos_y - point.start_y;
1411
if (abs(movement_y) > distance_trigger) {
1412
scroll_directions[i] = movement_y / abs(movement_y);
1413
- scroll_count++;
1414
1415
1416
0 commit comments