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,11 +1857,13 @@ _mouse_up_cb(void *data,
|
|||
/* 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
|
||||
* as well */
|
||||
if ((sd->long_pressed) && (!_elm_config->context_menu_disabled) &&
|
||||
(_elm_config->magnifier_enable))
|
||||
if ((sd->long_pressed) && (_elm_config->magnifier_enable))
|
||||
{
|
||||
_magnifier_hide(data);
|
||||
_menu_call(data);
|
||||
if (!_elm_config->context_menu_disabled)
|
||||
{
|
||||
_menu_call(data);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue