mirror of
https://github.com/danbulant/cushy
synced 2026-06-15 04:21:06 +00:00
More selection fixing
This commit is contained in:
parent
f0c1aec40e
commit
4a55a42011
1 changed files with 2 additions and 2 deletions
|
|
@ -885,7 +885,7 @@ where
|
|||
let relative = relative + rect.size / 2;
|
||||
|
||||
let line_height = cache.measured.line_height.get();
|
||||
if relative.y >= line_height {
|
||||
if relative.y < 0 || relative.y >= line_height {
|
||||
continue;
|
||||
}
|
||||
let xy = relative
|
||||
|
|
@ -897,7 +897,7 @@ where
|
|||
)
|
||||
.saturating_abs();
|
||||
let cursor = Cursor {
|
||||
offset: if relative.x < 0 || relative.y < 0 {
|
||||
offset: if relative.x <= 0 {
|
||||
glyph.info.start
|
||||
} else {
|
||||
glyph.info.end
|
||||
|
|
|
|||
Loading…
Reference in a new issue