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 摘要。