Switch non-animated scrolling in the mobile apps

This commit is contained in:
Adrien Maston
2026-02-04 18:35:12 +01:00
parent 1e4a411cf2
commit 171b8caa45
@@ -1,5 +1,6 @@
import { Controller } from "@hotwired/stimulus"
import { nextFrame, debounce } from "helpers/timing_helpers";
import { isNative } from "helpers/platform_helpers";
export default class extends Controller {
static classes = [ "collapsed", "expanded", "noTransitions", "titleNotVisible" ]
@@ -114,7 +115,7 @@ export default class extends Controller {
}
if (window.matchMedia('(max-width: 639px)').matches) {
column.scrollIntoView({ behavior: "smooth", inline: "center" })
column.scrollIntoView({ behavior: isNative() ? "instant" : "smooth", inline: "center" })
}
}