mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Merge pull request #25261 from overleaf/ae-textlayer-layer
Move `will-change: transform` to textLayer GitOrigin-RevId: 15fdd919da54ed95e115d664156066e6fda36982
This commit is contained in:
@@ -193,7 +193,6 @@
|
|||||||
div.pdf-canvas {
|
div.pdf-canvas {
|
||||||
background: white;
|
background: white;
|
||||||
box-shadow: 0 0 10px rgb(0 0 0 / 50%);
|
box-shadow: 0 0 10px rgb(0 0 0 / 50%);
|
||||||
will-change: transform;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.pdf-canvas.pdfng-empty {
|
div.pdf-canvas.pdfng-empty {
|
||||||
@@ -237,6 +236,18 @@
|
|||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Avoid slowdown in Safari when text layers are reset on selection change */
|
||||||
|
/* stylelint-disable-next-line selector-class-pattern */
|
||||||
|
.textLayer {
|
||||||
|
will-change: transform;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Avoid multiple small layers within annotation layer */
|
||||||
|
/* stylelint-disable-next-line selector-class-pattern */
|
||||||
|
.annotationLayer {
|
||||||
|
will-change: transform;
|
||||||
|
}
|
||||||
|
|
||||||
/* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */
|
/* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */
|
||||||
/* stylelint-disable-next-line selector-class-pattern */
|
/* stylelint-disable-next-line selector-class-pattern */
|
||||||
.textLayer br::selection {
|
.textLayer br::selection {
|
||||||
|
|||||||
Reference in New Issue
Block a user