Issue specific to Google Chrome and Windows 10
I'm currently working on a flipbook that adjusts content size using transform:scale() based on the user's screen size. There is also a zoom feature that allows users to adjust the scale factor. I have implemented mouse down and move events to enable scrolling by dragging with the mouse. This application has been developed using Angular framework. However, I am encountering an issue where the content at the right-bottom disappears when the user zooms in significantly. You can view the live demo here. The structure of the page is as follows:
<div class="outer-pages-wrapper" [ngStyle]="{'max-width': (containerWidth - 100) + 'px', width: ((ebook.width * ebook.scaleFactor) + (hideRight ? 0 : (ebook.width * ebook.scaleFactor))) + 'px', height: (ebook.height * ebook.wrapperScaleFactor) + 'px'}">
<div class="inner-pages-wrapper" [ngStyle]="{transform:'scale(' + ebook.scaleFactor + ')', '-ms-transform':'scale(' + ebook.scaleFactor + ')','-webkit-transform':'scale(' + ebook.scaleFactor + ')'}">
<app-ebook-page></app-ebook-page>
<app-ebook-page></app-ebook-page>
</div>
</div>
Below are some relevant CSS rules applied:
.outer-pages-wrapper {
display:flex;
overflow: hidden;
}
.inner-pages-wrapper {
transform-origin: left top;
-ms-transform-origin: left top;
-webkit-transform-origin: left top;
display:flex;
}
Refer to the screenshot showing the issue after multiple zoom-ins in Chrome for Windows: