方法:重写核心库文件,
laya.utils.Dragging 下的
/**
*拖拽的循环处理函数。
*/
__proto.loop=function(){
var point=this._parent.getMousePoint();
var mouseX=point.x;
var mouseY=point.y;
var offsetX=mouseX-this._lastX;
var offsetY=mouseY-this._lastY;
if(/macintosh|window/.test(navigator.userAgent.toLowerCase()))
{
console.log("mouseX:=["+ mouseX+"] mouseY:=["+mouseY+"] _lastX:=["+this._lastX+"] _lastY:=["+this._lastY+"] offsetX:=["+offsetX+"] offsetY:=["+offsetY+"]");
}
else
{
offsetX = this._lastY - mouseY;
offsetY = mouseX-this._lastX;
}