From 05dc70c6eda313235e450ee2f4fbeb45dcdb4f08 Mon Sep 17 00:00:00 2001 From: Austin Mroz Date: Tue, 1 Sep 2026 23:42:55 -0700 Subject: [PATCH] Add fallback value for step Under some circumstances likely related to the frontend ECS refactor, step will fail to be assigned. This will likely get fixed as a frontend bug, but there's no cost to applying a patch on the VHS side --- web/js/VHS.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/VHS.core.js b/web/js/VHS.core.js index 0fcc0cf..8d7f2c8 100755 --- a/web/js/VHS.core.js +++ b/web/js/VHS.core.js @@ -2220,7 +2220,7 @@ app.registerExtension({ if (v == 0) { return } - const s = this.options.step + const s = this.options.step ?? 1 let sh = this.options.mod ?? 0 this.value = Math.round((v - sh) / s) * s + sh },