1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-21 06:53:01 +08:00

reverse encoder direction (CCW==decrement, CW==increment)

This commit is contained in:
AloyseTech 2018-11-06 17:55:11 +01:00
parent 2c7b51ca56
commit d4fb9b1343

View File

@ -368,7 +368,7 @@ static lv_res_t lv_spinbox_signal(lv_obj_t * spinbox, lv_signal_t sign, void * p
{ {
if(indev_type == LV_INDEV_TYPE_ENCODER) if(indev_type == LV_INDEV_TYPE_ENCODER)
{ {
lv_spinbox_decrement(spinbox); lv_spinbox_increment(spinbox);
} }
else else
{ {
@ -379,7 +379,7 @@ static lv_res_t lv_spinbox_signal(lv_obj_t * spinbox, lv_signal_t sign, void * p
{ {
if(indev_type == LV_INDEV_TYPE_ENCODER) if(indev_type == LV_INDEV_TYPE_ENCODER)
{ {
lv_spinbox_increment(spinbox); lv_spinbox_decrement(spinbox);
} }
else else
{ {