From ca1a71540d75eeb59c43e74ae6817d93ec67e1c7 Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Sun, 2 Feb 2014 13:20:20 +0330 Subject: [PATCH] touch and mouse --- js/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/main.js b/js/main.js index df78ee3..b01a640 100644 --- a/js/main.js +++ b/js/main.js @@ -17,6 +17,7 @@ $(document).ready(function() { $(window).resize(sizeAndPos); $c.bind('mousedown touchstart', function(e) { + alert(e.pageX); var xy = relative(e.pageX, e.pageY); startPoint(xy.x, xy.y); window.active = true;