btpf / Alexandria

A minimalistic cross-platform eBook reader built with Tauri, Epub.js, and Typescript
GNU General Public License v3.0
2.15k stars 50 forks source link

Less than 120% Line Height Causing Multiple Extra Rectangles When Highlighting #28

Closed ddewett closed 8 months ago

ddewett commented 8 months ago

Issue: Using a line height under 120% causes extra highlighting rectangles to appear. Rectangles dynamically disappear when line height is greater than or equal to 120% (negative line heights also remove rectangles as this setting sets 120%).

Platform: Linux

Settings:

Steps:

1) Display text that covers multiple lines. 2) Highlight text with mouse and apply color using popup. I have not determined what is causing the extra rectangle, so highlighting large sections of text is the best option to see this effect. 3) Some text will have multiple rectangles applied, this presents an inconsistent view to the user.

Showing one duplicate rectangle at 115% Screenshot from 2024-01-10 21-10-19

Showing multiple duplicate rectangles at 110% Screenshot from 2024-01-10 21-11-14

Showing no duplicate rectangles at 0% Screenshot from 2024-01-10 21-11-00