-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Slow Scrolling on iPad #256
Comments
I'll check it out. Thanks! |
I find the same problem on Safari Version 7.0 (9537.71) which can be fixed by the same way. |
What -webkit-transform: translateZ(0); does is initiate the iPad and Mac to use the GPU to calculate the page. When it is CPU only, large complicated pdfs (in HTML) scroll really slow. |
Another thing to improve scrolling even more is to add * { -webkit-overflow-scrolling: touch; } to the pdf.html's css. This makes it scroll on ipad like it does everywhere else. |
I tried this one before, but didn't work for me on iPad 1. It caused tearing and tiling. |
I tried translateZ on ipad1, not perfect but helps a lot, maybe ipad1 is too old (but (even lower budget) android devices seem to be fine) I'll add it. |
Nope, seems that the effects are similar with or without translateZ. I wonder if you could test if adding translateZ only to pf or pc would help. I guess only one would be enough? |
marked as duplicate of #30. Actually I've tried translateZ before. |
I fixed this problem by adding
-webkit-transform: translateZ(0);
to
.pf and .pc
You might want to add this to your lib.
The text was updated successfully, but these errors were encountered: