UI: Fix apiSelect scrolling while zoomed in chrome

This commit is contained in:
kkthxbye-code 2022-04-22 20:33:46 +02:00
parent 554b4460ea
commit 37a5e4fdce
3 changed files with 2 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -570,8 +570,9 @@ export class APISelect {
* additional paginated options.
*/
private handleScroll(): void {
// Floor scrollTop as chrome can return fractions on some zoom levels.
const atBottom =
this.slim.slim.list.scrollTop + this.slim.slim.list.offsetHeight ===
Math.floor(this.slim.slim.list.scrollTop) + this.slim.slim.list.offsetHeight ===
this.slim.slim.list.scrollHeight;
if (this.atBottom && !atBottom) {