diff --git a/example/index.tsx b/example/index.tsx index f60482e..4db46f4 100644 --- a/example/index.tsx +++ b/example/index.tsx @@ -290,33 +290,37 @@ const App = () => {

Cropping

- - - +
+ + + +
{exampleC}

Text Layer

- - - - +
+ + + + +
{exampleD}

Custom Layer

diff --git a/src/components/svg-layer.tsx b/src/components/svg-layer.tsx index 251620b..e602137 100644 --- a/src/components/svg-layer.tsx +++ b/src/components/svg-layer.tsx @@ -69,6 +69,12 @@ const PdfSvgLayer = () => { // of the pdf, but junk. pointerEvents: "none", userSelect: "none", + WebkitUserSelect: "none", + MozUserSelect: "none", + backfaceVisibility: "hidden", + WebkitBackfaceVisibility: "hidden", + MozBackfaceVisibility: "hidden", + willChange: "opacity", // Apply transforms so that the pdf is cropped correctly: // (xEnd - xStart) = 100 width in relative cropped display space