diff --git a/intense.js b/intense.js index 1c6d75b..cf74fa5 100644 --- a/intense.js +++ b/intense.js @@ -334,8 +334,8 @@ var Intense = (function() { function onTouchMove(event) { event.preventDefault(); // Needed to keep this event firing. - mouse.xDest = event.touches[0].clientX; - mouse.yDest = event.touches[0].clientY; + mouse.xDest = window.innerWidth - event.touches[0].clientX; + mouse.yDest = window.innerHeight - event.touches[0].clientY; } // Exit on excape key pressed; diff --git a/intense.min.js b/intense.min.js index 81412e4..dfdf53e 100644 --- a/intense.min.js +++ b/intense.min.js @@ -1 +1 @@ -window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}(),window.cancelRequestAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout}();var Intense=function(){"use strict";function e(e,n){for(var t in n)t in e||(e[t]=n[t]);return e}function n(e,n){for(var t in n)e.style[t]=n[t]}function t(e){var n=window.innerHeight/e.h;if(e.w*n>window.innerWidth)return{w:e.w*n,h:e.h*n,fit:!0};var t=window.innerWidth/e.w;return{w:e.w*t,h:e.h*t,fit:!1}}function i(e){var n;if(e.length)for(n=0;nwindow.innerWidth)return{w:e.w*n,h:e.h*n,fit:!0};var t=window.innerWidth/e.w;return{w:e.w*t,h:e.h*t,fit:!1}}function i(e){var n;if(e.length)for(n=0;n