anaralabs / anaralabs/lector

Search result highlighting pixels are inaccurate

未關閉
#79 0 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
395
分支
39
平均合併
7 小時 7 分鐘
30 天內合併 PR
12

描述

Hi! I was trying to implement a search UI and highlighting behaviour in my app using Lector, when i noticed that the exactMatch result and calculated highlight rect was being very inconsistent in terms of its offset/accuracy.

Tested the same behaviour with a few words in the `Custom Search` example from https://lector-weld.vercel.app/docs/code/search and was able to reproduce the highlight being off. Screenshots below:

Actual (search term `aggressive`):
Image

Expected (using browser find/search):
Image

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。