mirror of
https://github.com/liabru/matter-js.git
synced 2025-01-31 18:14:55 -05:00
parent
7ec38a1f1c
commit
1269c9bce6
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