mirror of
https://github.com/dualshock-tools/dualshock-tools.github.io.git
synced 2026-03-01 11:19:54 +03:00
Reset the trackpad size when switching between controller types
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user