修改addPath
This commit is contained in:
parent
9b260d7f7a
commit
aa5234cdf3
@ -147,7 +147,7 @@ define(
|
||||
}
|
||||
|
||||
// 如果鼠标被按住,则可以拖出bezier曲线
|
||||
if (this.downMouse && points.length > 2) {
|
||||
if (this.downMouse && points.length >= 2) {
|
||||
// 设置倒数第二个点
|
||||
var last2 = points[points.length - 2];
|
||||
// 如果已经创建了曲线,则需要改变曲线形状
|
||||
|
@ -23,6 +23,7 @@ define(
|
||||
});
|
||||
|
||||
// 由于indexDB在隐私模式下会被禁用,这里需要检查下
|
||||
// 出错则不使用indexedDB
|
||||
projectDataStore.open(null, function () {
|
||||
projectDataStore = null;
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user