mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-13 06:19:21 +03:00
Take account of caret height when scrolling to show caret.
This commit is contained in:
parent
688e1b0e4f
commit
2bd0d13817
@ -326,8 +326,8 @@ static bool textarea_scroll_visible(struct textarea *ta)
|
||||
/* scroll as required */
|
||||
if (y < y0)
|
||||
ys += (y - y0);
|
||||
else if (y > y1)
|
||||
ys += (y - y1);
|
||||
else if (y + ta->line_height > y1)
|
||||
ys += (y + ta->line_height - y1);
|
||||
|
||||
if (ys != ta->scroll_y && ta->bar_y != NULL) {
|
||||
/* Scrolled, set new pos. */
|
||||
|
Loading…
Reference in New Issue
Block a user