diff --git a/src/interaction/InteractionManager.js b/src/interaction/InteractionManager.js index 94df60e..df9ad32 100644 --- a/src/interaction/InteractionManager.js +++ b/src/interaction/InteractionManager.js @@ -735,8 +735,16 @@ rect = this.interactionDOMElement.getBoundingClientRect(); } - point.x = ((x - rect.left) * (this.interactionDOMElement.width / rect.width)) / this.resolution; - point.y = ((y - rect.top) * (this.interactionDOMElement.height / rect.height)) / this.resolution; + if (navigator.isCocoonJS) + { + point.x = ((x - rect.left) * (this.interactionDOMElement.width / rect.width)) * this.resolution; + point.y = ((y - rect.top) * (this.interactionDOMElement.height / rect.height)) * this.resolution; + } + else + { + point.x = ((x - rect.left) * (this.interactionDOMElement.width / rect.width)) / this.resolution; + point.y = ((y - rect.top) * (this.interactionDOMElement.height / rect.height)) / this.resolution; + } } /**