From 55ef87d561735959ca0dae30648fdbfb85034ab3 Mon Sep 17 00:00:00 2001 From: Mathias Malmqvist Date: Thu, 20 Nov 2025 23:33:10 +0100 Subject: [PATCH] Reset the trackpad size when switching between controller types --- js/core.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/core.js b/js/core.js index afe9e51..4388faf 100644 --- a/js/core.js +++ b/js/core.js @@ -470,6 +470,9 @@ async function init_svg_controller(model) { svgContainer.innerHTML = svgContent; + // Reset trackpad bounding box so it's recalculated for the new SVG + trackpadBbox = undefined; + const lightBlue = '#7ecbff'; const midBlue = '#3399cc'; const dualshock = document.getElementById('Controller');