touch and mouse
This commit is contained in:
parent
79545b0dfb
commit
ca1a71540d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user