@@ -132,6 +132,7 @@ static void lv_slider_event(const lv_obj_class_t * class_p, lv_event_t * e)
132
132
else if (code == LV_EVENT_PRESSED ) {
133
133
/*Save the pressed coordinates*/
134
134
lv_indev_get_point (lv_indev_get_act (), & slider -> pressed_point );
135
+ lv_obj_transform_point (obj , & slider -> pressed_point , true, true);
135
136
}
136
137
else if (code == LV_EVENT_PRESSING ) {
137
138
update_knob_pos (obj , true);
@@ -353,6 +354,7 @@ static void drag_start(lv_obj_t * obj)
353
354
}
354
355
else if (mode == LV_SLIDER_MODE_RANGE ) {
355
356
lv_indev_get_point (lv_indev_get_act (), & p );
357
+ lv_obj_transform_point (obj , & p , true, true);
356
358
bool hor = is_slider_horizontal (obj );
357
359
lv_base_dir_t base_dir = lv_obj_get_style_base_dir (obj , LV_PART_MAIN );
358
360
@@ -419,6 +421,8 @@ static void update_knob_pos(lv_obj_t * obj, bool check_drag)
419
421
420
422
lv_point_t p ;
421
423
lv_indev_get_point (indev , & p );
424
+ lv_obj_transform_point (obj , & p , true, true);
425
+
422
426
bool is_hor = is_slider_horizontal (obj );
423
427
424
428
if (check_drag && !slider -> dragging ) {
0 commit comments