perf optimizations

This commit is contained in:
Anton Lavrenov
2020-06-16 16:20:36 -05:00
parent e22a98d656
commit 0fe8e7fb7f
7 changed files with 126 additions and 39 deletions

View File

@@ -92,6 +92,7 @@
transformsEnabled: 'position',
x: 10,
y: 10,
perfectDrawEnabled: false,
});
bunny.speedX = Math.random() * 10;
@@ -122,6 +123,7 @@
transformsEnabled: 'position',
x: 0,
y: 0,
perfectDrawEnabled: false,
});
bunny.speedX = Math.random() * 10;
bunny.speedY = Math.random() * 10 - 5;

View File

@@ -3861,9 +3861,9 @@ suite('Transformer', function () {
// proxy drag to other nodes
assert.equal(rect2.x(), 105);
assert.equal(rect2.y(), 105);
assert.equal(dragstart, 2);
assert.equal(dragmove, 2);
assert.equal(dragend, 2);
assert.equal(dragstart, 1);
assert.equal(dragmove, 1);
assert.equal(dragend, 1);
});
test('reattach from several and drag one', function () {