fix zoom. Closes T888
This commit is contained in:
parent
5067594760
commit
29418fdc55
|
@ -3630,8 +3630,7 @@ _smart_cb_gest_zoom_move(void *data, void *event)
|
|||
EINA_SAFETY_ON_NULL_RETURN_VAL(sd, EVAS_EVENT_FLAG_ON_HOLD);
|
||||
if (config)
|
||||
{
|
||||
int sz = (double)sd->zoom_fontsize_start *
|
||||
(1.0 + ((p->zoom - 1.0) / 30.0));
|
||||
int sz = (double)sd->zoom_fontsize_start * p->zoom;
|
||||
if (sz != config->font.size) _font_size_set(data, sz);
|
||||
}
|
||||
sd->didclick = EINA_TRUE;
|
||||
|
@ -3648,8 +3647,7 @@ _smart_cb_gest_zoom_end(void *data, void *event)
|
|||
EINA_SAFETY_ON_NULL_RETURN_VAL(sd, EVAS_EVENT_FLAG_ON_HOLD);
|
||||
if (config)
|
||||
{
|
||||
int sz = (double)sd->zoom_fontsize_start *
|
||||
(1.0 + ((p->zoom - 1.0) / 30.0));
|
||||
int sz = (double)sd->zoom_fontsize_start * p->zoom;
|
||||
if (sz != config->font.size) _font_size_set(data, sz);
|
||||
}
|
||||
sd->didclick = EINA_TRUE;
|
||||
|
|
Loading…
Reference in New Issue