_drawer_close(Evas_Object *obj, Evas_Coord w, Evas_Coord h, Eina_Bool anim)
{
ELM_PANEL_DATA_GET(obj, sd);
- int x = 0, y = 0;
+ int x = 0, y = 0, cx, cy;
Eina_Bool horizontal = EINA_FALSE;
elm_widget_tree_unfocusable_set(obj, EINA_TRUE);
break;
}
+ eo_do(obj, elm_interface_scrollable_content_pos_get(&cx, &cy));
+
+ if ((x == cx) && (y == cy))
+ {
+ if (!sd->freeze)
+ {
+ if (horizontal)
+ eo_do(obj, elm_interface_scrollable_movement_block_set
+ (ELM_SCROLLER_MOVEMENT_BLOCK_HORIZONTAL));
+ else
+ eo_do(obj, elm_interface_scrollable_movement_block_set
+ (ELM_SCROLLER_MOVEMENT_BLOCK_VERTICAL));
+ sd->freeze = EINA_TRUE;
+ elm_layout_signal_emit(sd->scr_ly, "elm,state,content,hidden", "elm");
+ }
+
+ return;
+ }
+
if (anim)
{
if (sd->freeze)