mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-12-26 06:33:49 +01:00
Fix move/zoom/rotate buttons on android (both chrome and native browser).
Remove reference to undefined variable; remove unneeded log message.
This commit is contained in:
parent
e125939db8
commit
97201587c0
@ -28,7 +28,13 @@
|
||||
var offset = $(element).offset();
|
||||
_x = e.originalEvent.pageX - offset.left;
|
||||
_y = e.originalEvent.pageY - offset.top;
|
||||
}
|
||||
}
|
||||
|
||||
//android+chrome-specific hack
|
||||
if (e.originalEvent.changedTouches != undefined) {
|
||||
_x = e.originalEvent.changedTouches[0].pageX - offset.left;
|
||||
_y = e.originalEvent.changedTouches[0].pageY - offset.top;
|
||||
}
|
||||
}
|
||||
|
||||
var startDownTimer = function() {
|
||||
|
@ -408,7 +408,7 @@ function onCanvasTouchMove(e) {
|
||||
// var x = e.touches[0].layerX;
|
||||
// var y = e.touches[0].layerY;
|
||||
|
||||
console.log("f:onCanvasTouchMove >> x,y = "+x+","+y+" , e: " , e);
|
||||
//console.log("f:onCanvasTouchMove >> x,y = "+x+","+y+" , e: " , e);
|
||||
|
||||
if (prevPoint.x != -1 || prevPoint.y != -1) {
|
||||
var dist = Math.sqrt(Math.pow((prevPoint.x - x), 2) + Math.pow((prevPoint.y - y), 2));
|
||||
|
@ -17,7 +17,7 @@ function getSavedSketchStatus() {
|
||||
}
|
||||
}
|
||||
}).fail(function() {
|
||||
console.log("getSavedSketchStatus failed: ", response);
|
||||
console.log("getSavedSketchStatus failed");
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user