fix(common): correct coordinates calculation for selection end position (#4826)
This commit is contained in:
parent
a0f424799c
commit
f63474cd06
1 changed files with 1 additions and 1 deletions
|
|
@ -279,7 +279,7 @@ export function useCodemirror(
|
|||
}
|
||||
|
||||
const text = view.value?.state.doc.sliceString(from, to)
|
||||
const coords = view.value?.coordsAtPos(from)
|
||||
const coords = view.value?.coordsAtPos(to)
|
||||
const top = coords?.top ?? 0
|
||||
const left = coords?.left ?? 0
|
||||
if (text?.trim()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue