Reset the trackpad size when switching between controller types

This commit is contained in:
Mathias Malmqvist
2025-11-20 23:33:10 +01:00
parent 3de54422d2
commit 55ef87d561

View File

@@ -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');