fix selection when backscrolling and new content arrives
Thanks to Davide Andreoli for the bug report
This commit is contained in:
parent
feccb7bcab
commit
f80d9634e3
|
@ -147,6 +147,7 @@ termio_scroll(Evas_Object *obj, int direction, int start_y, int end_y)
|
|||
if (start_y <= sel_start_y &&
|
||||
sel_end_y <= end_y)
|
||||
{
|
||||
ty->selection.orig.y += direction;
|
||||
ty->selection.start.y += direction;
|
||||
ty->selection.end.y += direction;
|
||||
sel_start_y += direction;
|
||||
|
@ -157,12 +158,17 @@ termio_scroll(Evas_Object *obj, int direction, int start_y, int end_y)
|
|||
_sel_set(sd, EINA_FALSE);
|
||||
}
|
||||
}
|
||||
else
|
||||
if (!((start_y > sel_end_y) ||
|
||||
else if (!((start_y > sel_end_y) ||
|
||||
(end_y < sel_start_y)))
|
||||
{
|
||||
_sel_set(sd, EINA_FALSE);
|
||||
}
|
||||
else if (sd->scroll > 0)
|
||||
{
|
||||
ty->selection.orig.y += direction;
|
||||
ty->selection.start.y += direction;
|
||||
ty->selection.end.y += direction;
|
||||
}
|
||||
}
|
||||
if (sd->link.string)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue