diff --git a/src/core/Mouse.js b/src/core/Mouse.js index 5c433f7..53e2695 100644 --- a/src/core/Mouse.js +++ b/src/core/Mouse.js @@ -193,8 +193,8 @@ var Common = require('../core/Common'); } return { - x: x / (element.clientWidth / element.width * pixelRatio), - y: y / (element.clientHeight / element.height * pixelRatio) + x: x / (element.clientWidth / (element.width || element.clientWidth) * pixelRatio), + y: y / (element.clientHeight / (element.height || element.clientHeight) * pixelRatio) }; };