thorium-reader icon indicating copy to clipboard operation
thorium-reader copied to clipboard

Fixed-Layout hairline gap in spine when zoomed

Open raxelbrof opened this issue 2 years ago • 3 comments

Hi,

Just giving 1.7.2's zoom function a test, and noticing in my fixed-layout books with edge-to-edge images, that Thorium is opening a 1px / hairline gap at the spine when using the zoom-in function, which isn't the best outcome.

Each page viewport is width=740, height=1132 Images contained are width=1480, height=2264px

spine-gap

raxelbrof avatar Sep 15 '21 05:09 raxelbrof

Thank you for reporting this! (tricky to solve, due to imprecision of CSS 2D transform (scale + translate) on the Electron webview controls :(

danielweck avatar Sep 15 '21 10:09 danielweck

So your suspicion would be it's not the pages themselves, but a gap opening between the separate webviews(?) used to make the double page spread?

raxelbrof avatar Sep 15 '21 14:09 raxelbrof

yes.

danielweck avatar Sep 15 '21 14:09 danielweck

Having looked at the current rendering stack and CSS "pixel" alignment precision when applying compound scale and translations transforms, I am afraid this is a "no fix". Let's see if more users report such rendering issues, and of course we will attempt to address the problem if the demand is high.

danielweck avatar Aug 26 '22 19:08 danielweck