fix scrollable to only query pan if there.
This commit is contained in:
parent
0b6a408084
commit
0e59b04fed
|
@ -1853,7 +1853,8 @@ _elm_scroll_wheel_event_cb(void *data,
|
||||||
_elm_scroll_wanted_region_set(sid->obj);
|
_elm_scroll_wanted_region_set(sid->obj);
|
||||||
}
|
}
|
||||||
eo_do(sid->obj, elm_scrollable_interface_content_viewport_size_get(&vw, &vh));
|
eo_do(sid->obj, elm_scrollable_interface_content_viewport_size_get(&vw, &vh));
|
||||||
eo_do(sid->pan_obj, elm_obj_pan_content_size_get(&cw, &ch));
|
if (sid->pan_obj)
|
||||||
|
eo_do(sid->pan_obj, elm_obj_pan_content_size_get(&cw, &ch));
|
||||||
if (!direction)
|
if (!direction)
|
||||||
{
|
{
|
||||||
if (ch > vh || cw <= vw)
|
if (ch > vh || cw <= vw)
|
||||||
|
|
Loading…
Reference in New Issue