mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Drop the use of crengine's getWordFromPosition() which is a bit unreliable: it may returns wrong coordinates, or words from far away in the book (ie. when holding in the margins). Rely only on the robust getTextFromPositions() that we already use for multi words selection. Having good coordinates allows refreshing a smaller region (the higlighted word, or the 2 lines if hyphenated).