diff options
author | Boris Faure <billiob@gmail.com> | 2015-02-13 22:59:56 +0100 |
---|---|---|
committer | Boris Faure <billiob@gmail.com> | 2015-02-13 22:59:56 +0100 |
commit | cf1c8f7c02eea315b2a1a3a13ccfc847685fb93a (patch) | |
tree | 63e843b86640932e6c4e3cb91c784f1f11bc4d11 /src | |
parent | 168395c3e6c6dbe33161f826db82db6117f78a72 (diff) |
move selection when content underneath scrolls
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/termio.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/bin/termio.c b/src/bin/termio.c index bf26172..3a3fb63 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c | |||
@@ -145,14 +145,14 @@ termio_scroll(Evas_Object *obj, int direction, int start_y, int end_y) | |||
145 | if (!ty->selection.is_top_to_bottom) | 145 | if (!ty->selection.is_top_to_bottom) |
146 | INT_SWAP(sel_start_y, sel_end_y); | 146 | INT_SWAP(sel_start_y, sel_end_y); |
147 | if (start_y <= sel_start_y && | 147 | if (start_y <= sel_start_y && |
148 | end_y >= sel_end_y) | 148 | sel_end_y <= end_y) |
149 | { | 149 | { |
150 | ty->selection.start.y += direction; | 150 | ty->selection.start.y += direction; |
151 | ty->selection.end.y += direction; | 151 | ty->selection.end.y += direction; |
152 | sel_start_y += direction; | 152 | sel_start_y += direction; |
153 | sel_end_y += direction; | 153 | sel_end_y += direction; |
154 | if (!(start_y <= sel_start_y && | 154 | if (!(start_y <= sel_start_y && |
155 | end_y >= sel_end_y)) | 155 | sel_end_y <= end_y)) |
156 | { | 156 | { |
157 | _sel_set(sd, EINA_FALSE); | 157 | _sel_set(sd, EINA_FALSE); |
158 | } | 158 | } |
@@ -163,11 +163,6 @@ termio_scroll(Evas_Object *obj, int direction, int start_y, int end_y) | |||
163 | { | 163 | { |
164 | _sel_set(sd, EINA_FALSE); | 164 | _sel_set(sd, EINA_FALSE); |
165 | } | 165 | } |
166 | else | ||
167 | { | ||
168 | ty->selection.start.y += direction; | ||
169 | ty->selection.end.y += direction; | ||
170 | } | ||
171 | } | 166 | } |
172 | if (sd->link.string) | 167 | if (sd->link.string) |
173 | { | 168 | { |