mirror of
https://github.com/liabru/matter-js.git
synced 2025-03-14 00:38:41 -04:00
Merge 1269c9bce6
into acb99b6f87
This commit is contained in:
commit
5a34163c54
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue