forked from enlightenment/efl
Elm entry: Fix to hide magnifier when menu is disabled.
Summary: Fix to hide magnifier when menu is disabled @fix Test Plan: 1. Enable magnifier 2. Disable menu 3. Long press and mouse up 4. observe magnifier is not hidden. Reviewers: tasn, herdsman, thiepha Subscribers: shilpasingh Differential Revision: https://phab.enlightenment.org/D3490
This commit is contained in:
parent
d512b185bf
commit
7f38944ac6
|
@ -1857,12 +1857,14 @@ _mouse_up_cb(void *data,
|
||||||
/* Since context menu disabled flag was checked at long press start while mouse
|
/* Since context menu disabled flag was checked at long press start while mouse
|
||||||
* down, hence the same should be checked at mouse up from a long press
|
* down, hence the same should be checked at mouse up from a long press
|
||||||
* as well */
|
* as well */
|
||||||
if ((sd->long_pressed) && (!_elm_config->context_menu_disabled) &&
|
if ((sd->long_pressed) && (_elm_config->magnifier_enable))
|
||||||
(_elm_config->magnifier_enable))
|
|
||||||
{
|
{
|
||||||
_magnifier_hide(data);
|
_magnifier_hide(data);
|
||||||
|
if (!_elm_config->context_menu_disabled)
|
||||||
|
{
|
||||||
_menu_call(data);
|
_menu_call(data);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
top = elm_widget_top_get(data);
|
top = elm_widget_top_get(data);
|
||||||
|
|
Loading…
Reference in New Issue