mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 17:46:18 +08:00
fix: block should not be selectable when dragged into note (#10664)
### Changed - Fixed the issue that block can still be selected when dragged into note - Rewrite grid and layer with extension infra
This commit is contained in:
@@ -12,6 +12,7 @@ import { UIEventDispatcher } from '../event/index.js';
|
||||
import { DndController } from '../extension/dnd/index.js';
|
||||
import { EditorLifeCycleExtension } from '../extension/editor-life-cycle.js';
|
||||
import { GfxController } from '../gfx/controller.js';
|
||||
import { GridManager, LayerManager } from '../gfx/index.js';
|
||||
import { GfxSelectionManager } from '../gfx/selection.js';
|
||||
import { SurfaceMiddlewareExtension } from '../gfx/surface-middleware.js';
|
||||
import { ViewManager } from '../gfx/view/view-manager.js';
|
||||
@@ -39,6 +40,8 @@ const internalExtensions = [
|
||||
Clipboard,
|
||||
GfxController,
|
||||
GfxSelectionManager,
|
||||
GridManager,
|
||||
LayerManager,
|
||||
SurfaceMiddlewareExtension,
|
||||
ViewManager,
|
||||
DndController,
|
||||
|
||||
Reference in New Issue
Block a user