mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-04 06:42:13 -08:00
fix bug
This commit is contained in:
parent
32920912ee
commit
9adb618267
1 changed files with 1 additions and 1 deletions
|
|
@ -363,7 +363,7 @@ class Clusterize {
|
|||
this.state.scroll_top = this.scroll_elem.scrollTop;
|
||||
const cluster_divider = this.config.cluster_height - this.config.block_height;
|
||||
const current_cluster = Math.floor(this.state.scroll_top / cluster_divider);
|
||||
return Math.min(current_cluster, this.config.max_clusters - 1);
|
||||
return Math.min(current_cluster, this.config.max_clusters);
|
||||
}
|
||||
|
||||
async #generate() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue