Commit 973140e3 authored by techird's avatar techird

优化缩放效果

parent 08f6a8dd
Subproject commit 5a3fc4422c0d3f1c2d812dd810d8ae7693fa3c93
Subproject commit 47c11b5d7977c81df1c2f1d779933d38ac6edb0e
......@@ -22,7 +22,7 @@ KityMinder.registerModule('Zoom', function() {
y: viewport.center.y
};
paper.setViewPort(viewport);
fixPaperCTM(paper);
if (value == 100) fixPaperCTM(paper);
}
});
......@@ -43,9 +43,7 @@ KityMinder.registerModule('Zoom', function() {
if (timeline) {
timeline.pause();
}
timeline = animator.start(minder, 100, 'ease', function() {
minder.refresh(100);
});
timeline = animator.start(minder, 300, 'easeInOutSine');
}
var ZoomCommand = kity.createClass('Zoom', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment