move selection when content underneath scrolls
This commit is contained in:
parent
168395c3e6
commit
cf1c8f7c02
|
@ -145,14 +145,14 @@ termio_scroll(Evas_Object *obj, int direction, int start_y, int end_y)
|
||||||
if (!ty->selection.is_top_to_bottom)
|
if (!ty->selection.is_top_to_bottom)
|
||||||
INT_SWAP(sel_start_y, sel_end_y);
|
INT_SWAP(sel_start_y, sel_end_y);
|
||||||
if (start_y <= sel_start_y &&
|
if (start_y <= sel_start_y &&
|
||||||
end_y >= sel_end_y)
|
sel_end_y <= end_y)
|
||||||
{
|
{
|
||||||
ty->selection.start.y += direction;
|
ty->selection.start.y += direction;
|
||||||
ty->selection.end.y += direction;
|
ty->selection.end.y += direction;
|
||||||
sel_start_y += direction;
|
sel_start_y += direction;
|
||||||
sel_end_y += direction;
|
sel_end_y += direction;
|
||||||
if (!(start_y <= sel_start_y &&
|
if (!(start_y <= sel_start_y &&
|
||||||
end_y >= sel_end_y))
|
sel_end_y <= end_y))
|
||||||
{
|
{
|
||||||
_sel_set(sd, EINA_FALSE);
|
_sel_set(sd, EINA_FALSE);
|
||||||
}
|
}
|
||||||
|
@ -163,11 +163,6 @@ termio_scroll(Evas_Object *obj, int direction, int start_y, int end_y)
|
||||||
{
|
{
|
||||||
_sel_set(sd, EINA_FALSE);
|
_sel_set(sd, EINA_FALSE);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
ty->selection.start.y += direction;
|
|
||||||
ty->selection.end.y += direction;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (sd->link.string)
|
if (sd->link.string)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue