这bug有点吓人
yyman001 opened this issue · 2 comments
yyman001 commented
Zephylaci commented
我也遇到过这种的....要怎么做错误处理呢...
偶尔还有加载不出来,console.log一直有输出的情况..
js是压缩的,调整起来实在难
shadowjohn commented
打開 live2d.min.js 找
default.DEBUG_MOUSE_LOG && console.log("onMouseMove device( x:" + t.clientX + " y:" + t.clientY +
有三個地方 #729、#750、#764
(注,750行左右的是 onMouseDown)
n = m(o.x - i.left),
s = T(o.y - i.top);
if(isNaN(n)) n = 1; //By Feather Mountain
if(isNaN(s)) s = 1; //By Feather Mountain
w.
default.DEBUG_MOUSE_LOG && console.log("onMouseMove device( x:" + t.clientX + " y:" + t.clientY + " ) view( x:" + n + " y:" + s + ")"), Y && (k = e, V = r, N.setPoint(n, s))
}
即可改善
debug 的過程是打開 506、507行
DEBUG_LOG: 1,
DEBUG_MOUSE_LOG: 1,
就會看到有時 n 會變成 NaN,變成空洞臉