Skip to content

Commit

Permalink
Merge pull request #3504 from Cryptorubic/id-1234
Browse files Browse the repository at this point in the history
Fix scroll
  • Loading branch information
axtezy authored Feb 20, 2025
2 parents 7383493 + ceedfe5 commit e731db4
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,14 @@ export class AssetsSelectorPageComponent implements OnInit, OnDestroy {
* Sets window height through html class name, to prevent broken scroll in Safari.
*/
private setWindowHeight(): void {
this.document.documentElement.style.setProperty(
'--window-inner-height',
`${window.innerHeight}px`
);
this.document.documentElement.classList.add('is-locked');
this.document.documentElement.classList.add('scroll-y');
if (this.isMobile) {
this.document.documentElement.style.setProperty(
'--window-inner-height',
`${window.innerHeight}px`
);
this.document.documentElement.classList.add('is-locked');
this.document.documentElement.classList.add('scroll-y');
}
}

private resetWindowHeight(): void {
Expand Down

0 comments on commit e731db4

Please # to comment.