Scroll column into view when opening its menu

This commit is contained in:
Adrien Maston
2026-03-04 11:31:45 +01:00
parent 9c26e834b7
commit 920502b590
2 changed files with 7 additions and 1 deletions
@@ -54,6 +54,12 @@ export default class extends Controller {
}
}
frameColumnOnMobile(event) {
if (!this.#isDesktop) {
event.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center" })
}
}
async #restoreColumnsDisablingTransitions() {
this.#disableTransitions()
this.#restoreColumns()