This commit is contained in:
@@ -687,7 +687,6 @@ const BookPage = forwardRef<HTMLDivElement, BookPageProps>(
|
|||||||
boxSizing: 'border-box',
|
boxSizing: 'border-box',
|
||||||
width: `${width}px`,
|
width: `${width}px`,
|
||||||
height: `${height}px`,
|
height: `${height}px`,
|
||||||
isolation: useHardPage ? undefined : 'isolate',
|
|
||||||
zIndex: 1,
|
zIndex: 1,
|
||||||
...(useHardPage
|
...(useHardPage
|
||||||
? { backgroundColor: effectiveBackgroundColor, ...bgStyle }
|
? { backgroundColor: effectiveBackgroundColor, ...bgStyle }
|
||||||
|
|||||||
@@ -474,7 +474,6 @@ const BookViewer: FC<BookViewerProps> = ({ pages, catalogSize, documentSettings
|
|||||||
className="max-w-full flex justify-center shrink-0 rounded-sm"
|
className="max-w-full flex justify-center shrink-0 rounded-sm"
|
||||||
style={{
|
style={{
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
isolation: 'isolate',
|
|
||||||
width: usePortrait ? pagePixelWidth : pagePixelWidth * 2,
|
width: usePortrait ? pagePixelWidth : pagePixelWidth * 2,
|
||||||
height: pagePixelHeight,
|
height: pagePixelHeight,
|
||||||
boxShadow: isDesktop
|
boxShadow: isDesktop
|
||||||
|
|||||||
@@ -1,5 +1,16 @@
|
|||||||
/* PowerPoint-style entrance animations for viewer (keyframes use --ve-* vars from JS) */
|
/* PowerPoint-style entrance animations for viewer (keyframes use --ve-* vars from JS) */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Hint GPU compositing layer on page elements to prevent blank/white pages
|
||||||
|
* during page flip animations on iOS 17/18 Safari (WebKit compositing bug
|
||||||
|
* triggered when isolation:isolate interacts with 3D CSS transforms).
|
||||||
|
*/
|
||||||
|
.stf__block,
|
||||||
|
.stf__item,
|
||||||
|
.page {
|
||||||
|
will-change: transform;
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes viewer-entrance-fade {
|
@keyframes viewer-entrance-fade {
|
||||||
from {
|
from {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user