From 5c121194da7eb7df6c9a7f3fe4e2217825873ebe Mon Sep 17 00:00:00 2001 From: Liam Gray Date: Wed, 17 Dec 2014 22:06:56 +0000 Subject: [PATCH] Removing my ugly comments in the JS --- dist/waves.js | 8 ++++---- src/js/waves.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/waves.js b/dist/waves.js index 29594f8..a56aa56 100644 --- a/dist/waves.js +++ b/dist/waves.js @@ -75,14 +75,14 @@ // Get click coordinate and element witdh var pos = offset(el); - var relativeY = (e.pageY - pos.top); //- 45 - var relativeX = (e.pageX - pos.left); //- 45 + var relativeY = (e.pageY - pos.top); + var relativeX = (e.pageX - pos.left); var scale = 'scale('+((el.clientWidth / 100) * 2.5)+')'; // Support for touch devices if ('touches' in e) { - relativeY = (e.touches[0].pageY - pos.top); //- 45 - relativeX = (e.touches[0].pageX - pos.left); //- 45 + relativeY = (e.touches[0].pageY - pos.top); + relativeX = (e.touches[0].pageX - pos.left); } // Attach data to element diff --git a/src/js/waves.js b/src/js/waves.js index 29594f8..a56aa56 100644 --- a/src/js/waves.js +++ b/src/js/waves.js @@ -75,14 +75,14 @@ // Get click coordinate and element witdh var pos = offset(el); - var relativeY = (e.pageY - pos.top); //- 45 - var relativeX = (e.pageX - pos.left); //- 45 + var relativeY = (e.pageY - pos.top); + var relativeX = (e.pageX - pos.left); var scale = 'scale('+((el.clientWidth / 100) * 2.5)+')'; // Support for touch devices if ('touches' in e) { - relativeY = (e.touches[0].pageY - pos.top); //- 45 - relativeX = (e.touches[0].pageX - pos.left); //- 45 + relativeY = (e.touches[0].pageY - pos.top); + relativeX = (e.touches[0].pageX - pos.left); } // Attach data to element