5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 05:16:21 +00:00

Merge branch 'arreglar-scroll' of 0xacab.org:sutty/sutty into panel.sutty.nl

This commit is contained in:
f 2023-03-14 18:51:55 -03:00
commit 47fd11dfa3

View file

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