mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
correctly detect if there if we need to load more movies/shows
This commit is contained in:
parent
ff6041b9d1
commit
955fa7e262
1 changed files with 2 additions and 3 deletions
|
@ -67,7 +67,7 @@ export class DiscoverComponent implements OnInit {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.contentLoaded = 12;
|
this.contentLoaded = this.amountToLoad;
|
||||||
|
|
||||||
this.createInitialModel();
|
this.createInitialModel();
|
||||||
this.scrollDisabled = false;
|
this.scrollDisabled = false;
|
||||||
|
@ -309,9 +309,8 @@ export class DiscoverComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
private containerHasScrollBar(): boolean {
|
private containerHasScrollBar(): boolean {
|
||||||
return
|
return this.container.documentElement.scrollHeight > this.container.documentElement.clientHeight;
|
||||||
// div.scrollHeight > div.clientHeight;
|
// div.scrollHeight > div.clientHeight;
|
||||||
this.container.documentElement.scrollHeight > this.container.documentElement.clientHeight;
|
|
||||||
// this.container.documentElement.scrollHeight > (window.innerHeight + window.pageYOffset);
|
// this.container.documentElement.scrollHeight > (window.innerHeight + window.pageYOffset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue