mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
UI: Fix apiSelect scrolling while zoomed in chrome
This commit is contained in:
2
netbox/project-static/dist/netbox.js
vendored
2
netbox/project-static/dist/netbox.js
vendored
File diff suppressed because one or more lines are too long
2
netbox/project-static/dist/netbox.js.map
vendored
2
netbox/project-static/dist/netbox.js.map
vendored
File diff suppressed because one or more lines are too long
@ -570,8 +570,9 @@ export class APISelect {
|
|||||||
* additional paginated options.
|
* additional paginated options.
|
||||||
*/
|
*/
|
||||||
private handleScroll(): void {
|
private handleScroll(): void {
|
||||||
|
// Floor scrollTop as chrome can return fractions on some zoom levels.
|
||||||
const atBottom =
|
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;
|
this.slim.slim.list.scrollHeight;
|
||||||
|
|
||||||
if (this.atBottom && !atBottom) {
|
if (this.atBottom && !atBottom) {
|
||||||
|
Reference in New Issue
Block a user