0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2025-03-14 00:38:41 -04:00
This commit is contained in:
Mofasa 2024-06-24 09:00:08 +08:00 committed by GitHub
commit 5a34163c54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,7 +34,7 @@ var Common = require('../core/Common');
mouse.scale = { x: 1, y: 1 };
mouse.wheelDelta = 0;
mouse.button = -1;
mouse.pixelRatio = parseInt(mouse.element.getAttribute('data-pixel-ratio'), 10) || 1;
mouse.pixelRatio = parseFloat(mouse.element.getAttribute('data-pixel-ratio')) || 1;
mouse.sourceEvents = {
mousemove: null,