mirror of
https://github.com/danbulant/cushy
synced 2026-07-05 11:10:34 +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 relative = relative + rect.size / 2;
|
||||||
|
|
||||||
let line_height = cache.measured.line_height.get();
|
let line_height = cache.measured.line_height.get();
|
||||||
if relative.y >= line_height {
|
if relative.y < 0 || relative.y >= line_height {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
let xy = relative
|
let xy = relative
|
||||||
|
|
@ -897,7 +897,7 @@ where
|
||||||
)
|
)
|
||||||
.saturating_abs();
|
.saturating_abs();
|
||||||
let cursor = Cursor {
|
let cursor = Cursor {
|
||||||
offset: if relative.x < 0 || relative.y < 0 {
|
offset: if relative.x <= 0 {
|
||||||
glyph.info.start
|
glyph.info.start
|
||||||
} else {
|
} else {
|
||||||
glyph.info.end
|
glyph.info.end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue