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

fix(slider): fix left knob in ranged mode

fixes: #3285
This commit is contained in:
Gabor Kiss-Vamosi 2022-04-20 11:19:18 +02:00
parent 9997fb00aa
commit 17f5e0accb

View File

@ -384,7 +384,8 @@ static void draw_knob(lv_event_t * e)
/*Calculate the second knob area*/
if(is_horizontal) {
knob_area.x1 = LV_SLIDER_KNOB_COORD(is_rtl, slider->bar.indic_area);
/*use !is_rtl to get the other knob*/
knob_area.x1 = LV_SLIDER_KNOB_COORD(!is_rtl, slider->bar.indic_area);
}
else {
knob_area.y1 = slider->bar.indic_area.y2;