touch and mouse

This commit is contained in:
Mahdi Dibaiee 2014-02-02 13:20:20 +03:30
parent 79545b0dfb
commit ca1a71540d

View File

@ -17,6 +17,7 @@ $(document).ready(function() {
$(window).resize(sizeAndPos); $(window).resize(sizeAndPos);
$c.bind('mousedown touchstart', function(e) { $c.bind('mousedown touchstart', function(e) {
alert(e.pageX);
var xy = relative(e.pageX, e.pageY); var xy = relative(e.pageX, e.pageY);
startPoint(xy.x, xy.y); startPoint(xy.x, xy.y);
window.active = true; window.active = true;