From 171b8caa452841a9269233d731ebf1964ad351ef Mon Sep 17 00:00:00 2001 From: Adrien Maston Date: Wed, 4 Feb 2026 18:35:12 +0100 Subject: [PATCH] Switch non-animated scrolling in the mobile apps --- app/javascript/controllers/collapsible_columns_controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/controllers/collapsible_columns_controller.js b/app/javascript/controllers/collapsible_columns_controller.js index 939fe8441..2b2c73f38 100644 --- a/app/javascript/controllers/collapsible_columns_controller.js +++ b/app/javascript/controllers/collapsible_columns_controller.js @@ -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" }) } }