efl_ui/widget: check legacy type on correct object for scroll_hold push/pop

too much copy/paste

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D9399
This commit is contained in:
Mike Blumenkrantz 2019-07-24 13:59:03 -04:00 committed by Marcel Hollerbach
parent 62d4d4c5b8
commit e0ae3a9a76
1 changed files with 2 additions and 2 deletions

View File

@ -2117,7 +2117,7 @@ _efl_ui_widget_scroll_hold_push(Eo *obj, Elm_Widget_Smart_Data *sd)
{
if (elm_widget_is(child) && _elm_scrollable_is(child))
{
if (elm_widget_is_legacy(obj))
if (elm_widget_is_legacy(child))
elm_interface_scrollable_hold_set(child, EINA_TRUE);
else
efl_ui_scrollable_scroll_hold_set(child, EINA_TRUE);
@ -2151,7 +2151,7 @@ _efl_ui_widget_scroll_hold_pop(Eo *obj, Elm_Widget_Smart_Data *sd)
{
if (elm_widget_is(child) && _elm_scrollable_is(child))
{
if (elm_widget_is_legacy(obj))
if (elm_widget_is_legacy(child))
elm_interface_scrollable_hold_set(child, EINA_FALSE);
else
efl_ui_scrollable_scroll_hold_set(child, EINA_FALSE);