Evas_Coord sx, sy;
Evas_Coord vx, vy;
- elm_interface_scrollable_content_region_get(o, &sx, &sy, NULL, NULL);
- elm_interface_scrollable_content_viewport_geometry_get(o, &vx, &vy, NULL, NULL);
+ //TIZEN_ONLY(202191209): restore legacy focus of scrollable
+ if (elm_widget_is_legacy(o))
+ {
+ elm_interface_scrollable_content_region_get(o, &sx, &sy, NULL, NULL);
+ elm_interface_scrollable_content_viewport_geometry_get(o, &vx, &vy, NULL, NULL);
+ }
+ else
+ {
+ Eina_Position2D pos = efl_ui_scrollable_content_pos_get(o);
+ Eina_Rect rect = efl_ui_scrollable_viewport_geometry_get(o);
+ sx = pos.x;
+ sy = pos.y;
+ vx = rect.x;
+ vy = rect.y;
+ }
+
+ //elm_interface_scrollable_content_region_get(o, &sx, &sy, NULL, NULL);
+ //elm_interface_scrollable_content_viewport_geometry_get(o, &vx, &vy, NULL, NULL);
+ //
// Get the object's on_focus_region position relative to the pan in the scroller.
Evas_Coord rx, ry;