fix ui: fix random scroller on mobile body
This commit is contained in:
parent
ed390daef8
commit
2704691852
2 changed files with 4 additions and 0 deletions
|
|
@ -108,6 +108,7 @@ export default class IOSPlayer extends Player {
|
|||
injectPlayer = (player: HTMLElement) => {
|
||||
this.screen.addToBody(player);
|
||||
this.screen.addMobileStyles();
|
||||
|
||||
window.addEventListener('resize', () =>
|
||||
this.customScale(this.customConstrains.width, this.customConstrains.height)
|
||||
);
|
||||
|
|
|
|||
|
|
@ -88,6 +88,9 @@ export default class Screen {
|
|||
addMobileStyles() {
|
||||
this.iframe.className = styles.mobileIframe;
|
||||
this.screen.className = styles.mobileScreen;
|
||||
if (this.document) {
|
||||
Object.assign(this.document?.body.style, { margin: 0, overflow: 'hidden' })
|
||||
}
|
||||
}
|
||||
|
||||
addFullscreenBoundary() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue