mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 01:56:27 +08:00
refactor(editor): reduce redundant canvas refresh on init (#10364)
This commit is contained in:
@@ -274,7 +274,7 @@ export class GfxController extends LifeCycleWatcher {
|
||||
}
|
||||
|
||||
override mounted() {
|
||||
this.viewport.setViewportElement(this.std.host);
|
||||
this.viewport.setShellElement(this.std.host);
|
||||
this.std.provider.getAll(GfxExtensionIdentifier).forEach(ext => {
|
||||
ext.mounted();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user