@@ -801,8 +801,8 @@ export function uwbMain(domId, modelWidth, modelHeight, finalMode, callback) {
let allWidth = parseFloat(housePlayer.style.width) + Math.abs(marginLeft);
let allHeight = parseFloat(housePlayer.style.height) + Math.abs(marginTop);
- mouse.x = ((event.clientX + Math.abs(marginLeft)) / width) * 2 - 1;
- mouse.y = -((event.clientY + Math.abs(marginTop)) / height) * 2 + 1;
+ mouse.x = ((event.clientX + Math.abs(marginLeft)) / parseFloat(housePlayer.style.width)) * 2 - 1;
+ mouse.y = -((event.clientY + Math.abs(marginTop)) / parseFloat(housePlayer.style.height)) * 2 + 1;
}