performance fixes, docs fixes

This commit is contained in:
Anton Lavrenov
2020-11-10 08:59:20 -05:00
parent 7e103bfac7
commit 38eb854453
14 changed files with 118 additions and 62 deletions

View File

@@ -402,19 +402,19 @@ suite('DragAndDrop', function () {
setTimeout(function () {
assert.equal(stage.isDragging(), true);
stage.simulateMouseUp({
x: stage.width() / 2 - 50,
y: stage.height() / 2,
});
setTimeout(function () {
var shape = layer.getIntersection({
x: stage.width() / 2 + 5,
y: stage.height() / 2,
});
var shape = layer.getIntersection({
x: stage.width() / 2 + 5,
y: stage.height() / 2,
});
assert.equal(shape, circle);
done();
assert.equal(shape, circle);
done();
}, 100);
}, 50);
});