5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 09:51:42 +00:00

Merge branch 'arreglar-scroll' into 'rails'

Arreglar scroll al reordenar posts

See merge request sutty/sutty!96
This commit is contained in:
fauno 2023-03-18 22:26:42 +00:00
commit 75c4d3264d

View file

@ -103,11 +103,7 @@ export default class extends Controller {
this.reorder()
// Mantenemos el primero a la vista
if ("scrollIntoViewIfNeeded" in rows[0].row) {
rows[0].row.scrollIntoViewIfNeeded()
} else {
rows[0].row.scrollIntoView()
}
rows[0].row.scrollIntoView({ block: "center" });
}
counter () {
@ -146,7 +142,7 @@ export default class extends Controller {
this.reorder()
// Mantenemos el primero a la vista
rows[0].row.scrollIntoViewIfNeeded()
rows[0].row.scrollIntoView({ block: "center" });
}
bottom (event) {
@ -167,7 +163,7 @@ export default class extends Controller {
this.reorder()
// Mantenemos el primero a la vista
rows[0].row.scrollIntoViewIfNeeded()
rows[0].row.scrollIntoView({ block: "center" });
}
/*