From 17f5e0accb15871040a6225a9c0471ceadd6dc16 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Wed, 20 Apr 2022 11:19:18 +0200 Subject: [PATCH] fix(slider): fix left knob in ranged mode fixes: #3285 --- src/widgets/lv_slider.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/lv_slider.c b/src/widgets/lv_slider.c index cebb6f689..faee0faa8 100644 --- a/src/widgets/lv_slider.c +++ b/src/widgets/lv_slider.c @@ -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;