mirror of
https://github.com/liabru/matter-js.git
synced 2025-02-07 19:06:26 -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.scale = { x: 1, y: 1 };
|
||||||
mouse.wheelDelta = 0;
|
mouse.wheelDelta = 0;
|
||||||
mouse.button = -1;
|
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 = {
|
mouse.sourceEvents = {
|
||||||
mousemove: null,
|
mousemove: null,
|
||||||
|
|
Loading…
Add table
Reference in a new issue